mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
dashdemux: fix memory leak
GPtrArray in GstActiveStream is leaked in some cases. gst_mpdparser_free_active_stream shall be invoked to free GstActiveStream https://bugzilla.gnome.org/show_bug.cgi?id=790899
This commit is contained in:
parent
55823ae92b
commit
f31e91b7a1
1 changed files with 2 additions and 2 deletions
|
@ -4746,14 +4746,14 @@ gst_mpd_client_setup_streaming (GstMpdClient * client,
|
|||
|
||||
if (!representation) {
|
||||
GST_WARNING ("No valid representation in the MPD file, aborting...");
|
||||
g_slice_free (GstActiveStream, stream);
|
||||
gst_mpdparser_free_active_stream (stream);
|
||||
return FALSE;
|
||||
}
|
||||
stream->mimeType =
|
||||
gst_mpdparser_representation_get_mimetype (adapt_set, representation);
|
||||
if (stream->mimeType == GST_STREAM_UNKNOWN) {
|
||||
GST_WARNING ("Unknown mime type in the representation, aborting...");
|
||||
g_slice_free (GstActiveStream, stream);
|
||||
gst_mpdparser_free_active_stream (stream);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue