hlsdemux: seems there was a typo, free the adapter if it contains data, not if alread...
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Fri, 26 Aug 2011 22:48:01 +0000 (22:48 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 30 Aug 2011 14:18:30 +0000 (16:18 +0200)
gst/hls/gsthlsdemux.c

index adeb965..8fdf317 100644 (file)
@@ -642,7 +642,7 @@ gst_hls_demux_stop_fetcher_locked (GstHLSDemux * demux, gboolean cancelled)
   demux->fetcher = NULL;
 
   /* if we stopped it to cancell a download, free the cached buffer */
-  if (cancelled && !gst_adapter_available (demux->download)) {
+  if (cancelled && gst_adapter_available (demux->download)) {
     gst_adapter_clear (demux->download);
   }
   /* signal the fetcher thread that the download has finished/cancelled */