mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 22:05:58 +00:00
vaapidecode: drain pending frames before set format
Drain pending frames, if any, in the internal decoder before setting the new negotiated format. https://bugzilla.gnome.org/show_bug.cgi?id=786173
This commit is contained in:
parent
7d74176395
commit
a4daa2a04a
1 changed files with 2 additions and 0 deletions
|
@ -1088,6 +1088,8 @@ gst_vaapidecode_set_format (GstVideoDecoder * vdec, GstVideoCodecState * state)
|
|||
|
||||
if (!gst_vaapi_decode_input_state_replace (decode, state))
|
||||
return TRUE;
|
||||
if (gst_vaapidecode_drain (vdec) == GST_FLOW_ERROR)
|
||||
return FALSE;
|
||||
if (!gst_vaapidecode_update_sink_caps (decode, state->caps))
|
||||
return FALSE;
|
||||
if (!gst_vaapi_plugin_base_set_caps (plugin, decode->sinkpad_caps, NULL))
|
||||
|
|
Loading…
Reference in a new issue