mssdemux: fix caps leak

This commit is contained in:
Thiago Santos 2014-05-12 17:37:16 -03:00
parent 6b8448c245
commit a1f87d0b4f

View 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);