mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
va: baseenc: Do not clear the codec frame twice when error.
The current manner will clear the input codec frame twice if we fail to push the output data, which will trigger an assert. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2739>
This commit is contained in:
parent
3385ea3481
commit
27c33f0161
1 changed files with 2 additions and 1 deletions
|
@ -624,11 +624,12 @@ gst_va_base_enc_drain (GstVideoEncoder * venc)
|
|||
if (ret != GST_FLOW_OK)
|
||||
goto error_and_purge_all;
|
||||
|
||||
frame_enc = NULL;
|
||||
|
||||
ret = _push_out_one_buffer (base);
|
||||
if (ret != GST_FLOW_OK)
|
||||
goto error_and_purge_all;
|
||||
|
||||
frame_enc = NULL;
|
||||
if (!base_class->reorder_frame (base, NULL, TRUE, &frame_enc)) {
|
||||
ret = GST_FLOW_ERROR;
|
||||
goto error_and_purge_all;
|
||||
|
|
Loading…
Reference in a new issue