mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
decoder: vc1: flush dpb only if opened
Flush the decode picture buffer, if and only if, the decoder is started. Otherwise the dpb structure might be NULL. https://bugzilla.gnome.org/show_bug.cgi?id=742922
This commit is contained in:
parent
19c0c8a973
commit
fcc08627e5
1 changed files with 2 additions and 1 deletions
|
@ -1393,6 +1393,7 @@ gst_vaapi_decoder_vc1_flush (GstVaapiDecoder * base_decoder)
|
|||
GstVaapiDecoderVC1 *const decoder = GST_VAAPI_DECODER_VC1_CAST (base_decoder);
|
||||
GstVaapiDecoderVC1Private *const priv = &decoder->priv;
|
||||
|
||||
if (priv->is_opened)
|
||||
gst_vaapi_dpb_flush (priv->dpb);
|
||||
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue