Must be the IVideoRenderElement* ignored If the datatype is VideoRenderData_None? Because it’s unintialized! If so, I would expect a nullptr for the pElement;
You can reproduce it in your sample code. If you join a meeting, the preview video element will be destroyed. After that, the function above is called and the IVideorenderElement is invalid. If you call the GetType method, the app will crash. Since the dataType parameter is VideoRenderData_None, I don’t know if this is correct or a bug. If it’s correct, I expect the IVideorenderElement to be a null pointer. Simply run your own sample code and insert the GetType call above to check it out.