mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
avviddec: Fix memory leak if we already allocated an output buffer for the frame
This commit is contained in:
parent
76b8b8c67f
commit
06de84c747
1 changed files with 1 additions and 0 deletions
|
@ -588,6 +588,7 @@ fallback:
|
||||||
duplicate_frame:
|
duplicate_frame:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (ffmpegdec, "already alloc'ed output buffer for frame");
|
GST_WARNING_OBJECT (ffmpegdec, "already alloc'ed output buffer for frame");
|
||||||
|
gst_video_codec_frame_unref (frame);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
no_frame:
|
no_frame:
|
||||||
|
|
Loading…
Reference in a new issue