mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
mfc: Only unref the outbuf if it doesn't belong to the frame
This commit is contained in:
parent
902e72874a
commit
1ca618fa6a
1 changed files with 2 additions and 0 deletions
|
@ -396,6 +396,8 @@ done:
|
|||
goto enqueue_error;
|
||||
}
|
||||
|
||||
if (!frame && outbuf)
|
||||
gst_buffer_unref (outbuf);
|
||||
if (state)
|
||||
gst_video_codec_state_unref (state);
|
||||
if (frame)
|
||||
|
|
Loading…
Reference in a new issue