mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
vaapidecode: Add comments for corner case fixes and fix couple of indentations.
This commit is contained in:
parent
9b885c65ca
commit
b9feff206f
1 changed files with 9 additions and 5 deletions
|
@ -420,6 +420,10 @@ gst_vaapidecode_push_all_decoded_frames (GstVaapiDecode * decode)
|
||||||
return ret;
|
return ret;
|
||||||
break;
|
break;
|
||||||
case GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA:
|
case GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA:
|
||||||
|
/* Delayed the pool re-negotiation untill we push all decoded (and queued)
|
||||||
|
* frames downstream. Otherwise for the multi-resolution videos, the
|
||||||
|
* GstVideoVideoMemory will be having wrong resolution.
|
||||||
|
* commit 6eba201f3252eba6a99ab7da7a4c662091a3e884 */
|
||||||
if (!gst_vaapidecode_negotiate (decode))
|
if (!gst_vaapidecode_negotiate (decode))
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
Loading…
Reference in a new issue