vp8enc: Don't leak GstVideoCodecFrames that cause the creation of invisible frames
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 12 Nov 2012 12:01:23 +0000 (13:01 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 12 Nov 2012 12:01:23 +0000 (13:01 +0100)
Fixes bug #682714.

ext/vpx/gstvp8enc.c

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