diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-04-14 16:10:02 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-04-18 11:14:04 +0200 |
commit | 80eb682b64db758d22e4adc66c5942e36a1a701d (patch) | |
tree | b4ff52efff92ecd7ba80e290311e89efe6df6719 | |
parent | 3478b27c926f28e2d225c7884f7d8f2988bb76a1 (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.c | 6 |
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); } |