Free the stream and its sub items instead of just the stream
https://bugzilla.gnome.org/show_bug.cgi?id=756544
"found, assuming preview image or something; skipping track",
stream->duration, stream->timescale, qtdemux->duration,
qtdemux->timescale);
- g_free (stream);
+ if (new_stream)
+ gst_qtdemux_stream_free (qtdemux, stream);
return TRUE;
}
}
if (stsd_len < 24) {
/* .. but skip stream with empty stsd produced by some Vivotek cameras */
if (stream->subtype == FOURCC_vivo) {
- g_free (stream);
+ if (new_stream)
+ gst_qtdemux_stream_free (qtdemux, stream);
return TRUE;
} else {
goto corrupt_file;