mfc: Only unref the outbuf if it doesn't belong to the frame
This commit is contained in:
parent
902e72874a
commit
1ca618fa6a
@ -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…
x
Reference in New Issue
Block a user