I'm working on Wince7 and trying to switch from Video Renderer to the VMR.
My decoder is a hardware decoder so I'm using the IOverlay interface to display the video.
Almost everything works correctly except the call IBasicVideo::SetSourcePosition which return E_INVALIDARG.
IBasicVideo::SetDestinationPosition works fine.
After some research I found that the decoder consider the Video size to be 0,0. Those value are returned by IBasicVideo::GetVideoSize. I also get an error : CAllocatorPresenter::RepaintVideo: Exiting, hr = 0x8004020c
but I'm not sure if it's related
How can I send the corrent video resolution to the VMR ?
I set the video parametres thrrough AM_MEDIA_TYPE