mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +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;
|
goto enqueue_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!frame && outbuf)
|
||||||
|
gst_buffer_unref (outbuf);
|
||||||
if (state)
|
if (state)
|
||||||
gst_video_codec_state_unref (state);
|
gst_video_codec_state_unref (state);
|
||||||
if (frame)
|
if (frame)
|
||||||
|
|
Loading…
Reference in a new issue