diff --git a/src/MediaFrameListenerBridge.cpp b/src/MediaFrameListenerBridge.cpp index 80b428aa0..1034bb0f9 100644 --- a/src/MediaFrameListenerBridge.cpp +++ b/src/MediaFrameListenerBridge.cpp @@ -141,9 +141,11 @@ void MediaFrameListenerBridge::onMediaFrame(DWORD ignored, const MediaFrame& fra //UPdate size for video if (frame->GetType() == MediaFrame::Video) { + //Convert + auto videoFrame = std::static_pointer_cast(frame); //Set width and height - width = frame->GetWidth(); - height = frame->GetHeight(); + width = videoFrame->GetWidth(); + height = videoFrame->GetHeight(); } //Get info