mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
vaapidecode: init {decoded,display}_info at open()
It is required to initialize {decoded,display}_info variables when the decoder is open, not only at instance initialization. https://bugzilla.gnome.org/show_bug.cgi?id=764316
This commit is contained in:
parent
3478b27c92
commit
80eb682b64
1 changed files with 3 additions and 3 deletions
|
@ -927,6 +927,9 @@ gst_vaapidecode_open (GstVideoDecoder * vdec)
|
|||
if (!gst_vaapi_plugin_base_open (GST_VAAPI_PLUGIN_BASE (decode)))
|
||||
return FALSE;
|
||||
|
||||
gst_video_info_init (&decode->decoded_info);
|
||||
gst_video_info_init (&decode->display_info);
|
||||
|
||||
/* Let GstVideoContext ask for a proper display to its neighbours */
|
||||
/* Note: steal old display that may be allocated from get_caps()
|
||||
so that to retain a reference to it, thus avoiding extra
|
||||
|
@ -1276,9 +1279,6 @@ gst_vaapidecode_init (GstVaapiDecode * decode)
|
|||
g_mutex_init (&decode->surface_ready_mutex);
|
||||
g_cond_init (&decode->surface_ready);
|
||||
|
||||
gst_video_info_init (&decode->decoded_info);
|
||||
gst_video_info_init (&decode->display_info);
|
||||
|
||||
gst_video_decoder_set_packetized (vdec, FALSE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue