mssdemux: fix caps leak in error code path

https://bugzilla.gnome.org/show_bug.cgi?id=787736
This commit is contained in:
Tim-Philipp Müller 2017-09-15 20:34:28 +01:00
parent 085f875a24
commit 6eff4f8d81

View file

@ -580,6 +580,7 @@ gst_mss_demux_stream_select_bitrate (GstAdaptiveDemuxStream * stream,
if (!selected_system) {
GST_ERROR_OBJECT (mssdemux, "stream is protected, but no "
"suitable decryptor element has been found");
gst_caps_unref (caps);
return FALSE;
}