mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
vaapidecode: avoid double release of frame on error.
Don't call gst_video_decoder_drop_frame() if gst_video_decoder_finish_frame() was already called before and it returned an error. In that case, we were releasing the frame again, thus leading to a "double-free" condition.
This commit is contained in:
parent
9e643a6147
commit
0ff8556f65
1 changed files with 0 additions and 1 deletions
|
@ -276,7 +276,6 @@ error_create_buffer:
|
|||
error_commit_buffer:
|
||||
{
|
||||
GST_DEBUG("video sink rejected the video buffer (error %d)", ret);
|
||||
gst_video_decoder_drop_frame(vdec, out_frame);
|
||||
gst_video_codec_frame_unref(out_frame);
|
||||
return GST_FLOW_UNEXPECTED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue