mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
libav: fix frame leak on negotiation error
The function owns a reference on the frame. Drop it if negotiation failed as we are already doing for the other error cases. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2196>
This commit is contained in:
parent
e482b995fb
commit
7933fff83c
1 changed files with 1 additions and 0 deletions
|
@ -1887,6 +1887,7 @@ no_output:
|
||||||
|
|
||||||
negotiation_error:
|
negotiation_error:
|
||||||
{
|
{
|
||||||
|
gst_video_decoder_drop_frame (GST_VIDEO_DECODER (ffmpegdec), out_frame);
|
||||||
if (GST_PAD_IS_FLUSHING (GST_VIDEO_DECODER_SRC_PAD (ffmpegdec))) {
|
if (GST_PAD_IS_FLUSHING (GST_VIDEO_DECODER_SRC_PAD (ffmpegdec))) {
|
||||||
*ret = GST_FLOW_FLUSHING;
|
*ret = GST_FLOW_FLUSHING;
|
||||||
goto beach;
|
goto beach;
|
||||||
|
|
Loading…
Reference in a new issue