If the QtDemuxStream are re-used they may already have caps which used
to be leaked.
Reproduced using the
validate.dash.playback.seek_forward.dash_exMPD_BIP_TC1 validate
scenario.
https://bugzilla.gnome.org/show_bug.cgi?id=756561
}
}
+ if (stream->caps)
+ gst_caps_unref (stream->caps);
+
stream->caps =
qtdemux_video_caps (qtdemux, stream, fourcc, stsd_data, &codec);
if (G_UNLIKELY (!stream->caps)) {
GST_WARNING_OBJECT (qtdemux, "unknown audio STSD version %08x", version);
}
+ if (stream->caps)
+ gst_caps_unref (stream->caps);
+
stream->caps = qtdemux_audio_caps (qtdemux, stream, fourcc,
stsd_data + 32, len - 16, &codec);