mfplay: Implement GetNativeVideoSize().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b1203230a3
commit
2d22908439
|
@ -1243,9 +1243,20 @@ static HRESULT WINAPI media_player_SetMute(IMFPMediaPlayer *iface, BOOL mute)
|
||||||
static HRESULT WINAPI media_player_GetNativeVideoSize(IMFPMediaPlayer *iface,
|
static HRESULT WINAPI media_player_GetNativeVideoSize(IMFPMediaPlayer *iface,
|
||||||
SIZE *video, SIZE *arvideo)
|
SIZE *video, SIZE *arvideo)
|
||||||
{
|
{
|
||||||
FIXME("%p, %p, %p.\n", iface, video, arvideo);
|
struct media_player *player = impl_from_IMFPMediaPlayer(iface);
|
||||||
|
IMFVideoDisplayControl *display_control;
|
||||||
|
HRESULT hr;
|
||||||
|
|
||||||
return E_NOTIMPL;
|
TRACE("%p, %p, %p.\n", iface, video, arvideo);
|
||||||
|
|
||||||
|
if (SUCCEEDED(hr = MFGetService((IUnknown *)player->session, &MR_VIDEO_RENDER_SERVICE,
|
||||||
|
&IID_IMFVideoDisplayControl, (void **)&display_control)))
|
||||||
|
{
|
||||||
|
hr = IMFVideoDisplayControl_GetNativeVideoSize(display_control, video, arvideo);
|
||||||
|
IMFVideoDisplayControl_Release(display_control);
|
||||||
|
}
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI media_player_GetIdealVideoSize(IMFPMediaPlayer *iface,
|
static HRESULT WINAPI media_player_GetIdealVideoSize(IMFPMediaPlayer *iface,
|
||||||
|
|
Loading…
Reference in New Issue