diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2011-08-26 22:48:01 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-08-30 16:18:30 +0200 |
commit | ed5a5cc139ae9912386aef461a0bbe1555143ce3 (patch) | |
tree | 89f43d21abea937bc2a2d0ecdd86a8243a5459ab /gst/hls | |
parent | 4a6d888961fc38aa7b55d7adfb9458ad5ad5d87a (diff) | |
download | gstreamer-plugins-bad-ed5a5cc139ae9912386aef461a0bbe1555143ce3.tar.gz |
hlsdemux: seems there was a typo, free the adapter if it contains data, not if already empty
Diffstat (limited to 'gst/hls')
-rw-r--r-- | gst/hls/gsthlsdemux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index adeb96533..8fdf317e6 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -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 */ |