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 265e6c35a52d89f0980eef7c27951003d47a9c3a..e1c30306c0f6725b6cb5b6b154ff776bfe2d767c 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);