mssdemux: fix caps leak
authorThiago Santos <ts.santos@sisa.samsung.com>
Mon, 12 May 2014 20:37:16 +0000 (17:37 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Mon, 12 May 2014 21:08:12 +0000 (18:08 -0300)
ext/smoothstreaming/gstmssdemux.c

index c617a68b467f4405baa85a7de2c84e2e621c232d..6b6e74a2212a4b25ebd6b5f176086880e27a000d 100644 (file)
@@ -883,6 +883,8 @@ gst_mss_demux_expose_stream (GstMssDemux * mssdemux, GstMssDemuxStream * stream)
     g_free (name);
 
     gst_pad_set_caps (pad, caps);
+    if (stream->caps)
+      gst_caps_unref (stream->caps);
     stream->caps = caps;
 
     lang = gst_mss_stream_get_lang (stream->manifest_stream);