tsdemux: Don't leak bufferlist on streams without pads
authorEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 29 Apr 2011 10:39:38 +0000 (12:39 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 29 Apr 2011 10:47:34 +0000 (12:47 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=648929

gst/mpegtsdemux/tsdemux.c

index 85486d9d7eed4605626be0b37467e726980b2d24..8203ef6e072e6d71482844295f0c79b7bab950cf 100644 (file)
@@ -1410,6 +1410,8 @@ gst_ts_demux_push_pending_data (GstTSDemux * demux, TSDemuxStream * stream)
       /* FIXME : combine flow returns */
       res = tsdemux_combine_flows (demux, stream, res);
       GST_DEBUG_OBJECT (stream->pad, "combined %s", gst_flow_get_name (res));
+    } else {
+      gst_buffer_list_unref (stream->current);
     }
   }