summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-04-14 16:10:02 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-04-18 11:14:04 +0200
commit80eb682b64db758d22e4adc66c5942e36a1a701d (patch)
treeb4ff52efff92ecd7ba80e290311e89efe6df6719
parent3478b27c926f28e2d225c7884f7d8f2988bb76a1 (diff)
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
-rw-r--r--gst/vaapi/gstvaapidecode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index f4430491..f4b1ef7c 100644
--- a/gst/vaapi/gstvaapidecode.c
+++ b/gst/vaapi/gstvaapidecode.c
@@ -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);
}