gst-plugins-bad: hlsdemux: Set playlist parsing helper object to NULL after freeing

Sebastian Dröge slomo at kemper.freedesktop.org
Fri Sep 2 05:57:17 PDT 2011


Module: gst-plugins-bad
Branch: master
Commit: 445f6260164809a05ae3af85249bfe8f5145e3a8
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=445f6260164809a05ae3af85249bfe8f5145e3a8

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Fri Sep  2 14:54:56 2011 +0200

hlsdemux: Set playlist parsing helper object to NULL after freeing

---

 gst/hls/gsthlsdemux.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c
index 0a266e2..c05192f 100644
--- a/gst/hls/gsthlsdemux.c
+++ b/gst/hls/gsthlsdemux.c
@@ -861,8 +861,10 @@ gst_hls_demux_reset (GstHLSDemux * demux, gboolean dispose)
 
   gst_adapter_clear (demux->download);
 
-  if (demux->client)
+  if (demux->client) {
     gst_m3u8_client_free (demux->client);
+    demux->client = NULL;
+  }
 
   if (!dispose) {
     demux->client = gst_m3u8_client_new ("");



More information about the gstreamer-commits mailing list