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
@ -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…
x
Reference in New Issue
Block a user