Fixes regression introduced by commit
2eb2b26a.
There is a use case when the decoder set the src caps and immediatly
tries to process the media codec_data, this happens before decoder is
even opened, thus priv->parser is not instantiated yet.
https://bugzilla.gnome.org/show_bug.cgi?id=787818
GstH264ParserResult result;
guint i, ofs, num_sps, num_pps;
+ if (!priv->is_opened)
+ return GST_VAAPI_DECODER_STATUS_SUCCESS;
+
unit.parsed_info = NULL;
if (buf_size < 7)
guint num_nal_arrays, num_nals;
guint i, j, ofs;
+ if (!priv->is_opened)
+ return GST_VAAPI_DECODER_STATUS_SUCCESS;
+
unit.parsed_info = NULL;
if (buf_size < 23)
return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;