vp8enc: Don't leak GstVideoCodecFrames that cause the creation of invisible frames

Fixes bug #682714.
This commit is contained in:
Sebastian Dröge 2012-11-12 13:01:23 +01:00
parent 5e9adc4936
commit 9ad88d265c

View file

@ -1807,6 +1807,7 @@ gst_vp8_enc_process (GstVP8Enc * encoder)
if (invisible) { if (invisible) {
user_data->invisible = g_list_append (user_data->invisible, buffer); user_data->invisible = g_list_append (user_data->invisible, buffer);
gst_video_codec_frame_unref (frame);
} else { } else {
frame->output_buffer = buffer; frame->output_buffer = buffer;
g_mutex_unlock (&encoder->encoder_lock); g_mutex_unlock (&encoder->encoder_lock);