mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
dashdemux: fix memory leak in gst_dash_demux_get_next_header()
This commit is contained in:
parent
95ee452625
commit
cd84aaa9aa
1 changed files with 7 additions and 2 deletions
|
@ -1272,7 +1272,9 @@ gst_dash_demux_select_representations (GstDashDemux * demux, guint64 bitrate)
|
||||||
static GstFragment *
|
static GstFragment *
|
||||||
gst_dash_demux_get_next_header (GstDashDemux * demux, guint stream_idx)
|
gst_dash_demux_get_next_header (GstDashDemux * demux, guint stream_idx)
|
||||||
{
|
{
|
||||||
const gchar *next_header_uri, *initializationURL;
|
const gchar *initializationURL;
|
||||||
|
gchar *next_header_uri;
|
||||||
|
GstFragment *fragment;
|
||||||
|
|
||||||
if (!gst_mpd_client_get_next_header (demux->client, &initializationURL,
|
if (!gst_mpd_client_get_next_header (demux->client, &initializationURL,
|
||||||
stream_idx))
|
stream_idx))
|
||||||
|
@ -1288,7 +1290,10 @@ gst_dash_demux_get_next_header (GstDashDemux * demux, guint stream_idx)
|
||||||
|
|
||||||
GST_INFO_OBJECT (demux, "Fetching header %s", next_header_uri);
|
GST_INFO_OBJECT (demux, "Fetching header %s", next_header_uri);
|
||||||
|
|
||||||
return gst_uri_downloader_fetch_uri (demux->downloader, next_header_uri);
|
fragment = gst_uri_downloader_fetch_uri (demux->downloader, next_header_uri);
|
||||||
|
g_free (next_header_uri);
|
||||||
|
|
||||||
|
return fragment;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstBufferListItem
|
static GstBufferListItem
|
||||||
|
|
Loading…
Reference in a new issue