mfmediaengine: Explicitly store output video format.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b20c478bfd
commit
d6eb5947e1
|
@ -117,6 +117,7 @@ struct media_engine
|
||||||
TOPOID node_id;
|
TOPOID node_id;
|
||||||
BYTE *buffer;
|
BYTE *buffer;
|
||||||
UINT buffer_size;
|
UINT buffer_size;
|
||||||
|
DXGI_FORMAT output_format;
|
||||||
} video_frame;
|
} video_frame;
|
||||||
CRITICAL_SECTION cs;
|
CRITICAL_SECTION cs;
|
||||||
};
|
};
|
||||||
|
@ -747,6 +748,8 @@ static HRESULT media_engine_create_video_renderer(struct media_engine *engine, I
|
||||||
|
|
||||||
IMFActivate_Release(activate);
|
IMFActivate_Release(activate);
|
||||||
|
|
||||||
|
engine->video_frame.output_format = output_format;
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue