mfc: Only unref the outbuf if it doesn't belong to the frame

This commit is contained in:
Sebastian Dröge 2012-12-23 13:46:07 +01:00
parent 902e72874a
commit 1ca618fa6a

View file

@ -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)