hlsdemux: oups, we need to empty the queue after freeing its content
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Fri, 26 Aug 2011 22:47:35 +0000 (22:47 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 30 Aug 2011 14:18:08 +0000 (16:18 +0200)
gst/hls/gsthlsdemux.c

index 9b6f99a61d9424c3ff6372468ef302cca56305a2..adeb965331bc76781d218e418b7daac04ad7a83c 100644 (file)
@@ -392,6 +392,8 @@ gst_hls_demux_src_event (GstPad * pad, GstEvent * event)
         GstBuffer *buf = g_queue_pop_head (demux->queue);
         gst_buffer_unref (buf);
       }
+      g_queue_clear (demux->queue);
+      gst_adapter_clear (demux->download);
 
       GST_DEBUG_OBJECT (demux, "seeking to sequence %d", current_sequence);
       demux->client->sequence = current_sequence;