summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2011-08-26 22:47:35 +0000
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-08-30 16:18:08 +0200
commit4a6d888961fc38aa7b55d7adfb9458ad5ad5d87a (patch)
tree991f1faf5f14cd3937ced8bf2c77bc0119ee07f8
parent59c61209cf87f547386f90422f31f66605ca67b1 (diff)
hlsdemux: oups, we need to empty the queue after freeing its content
-rw-r--r--gst/hls/gsthlsdemux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c
index 9b6f99a61..adeb96533 100644
--- a/gst/hls/gsthlsdemux.c
+++ b/gst/hls/gsthlsdemux.c
@@ -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;