mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
mpdparser: fix memory leak in gst_mpd_client_get_next_fragment_set()
we have to free next_fragment_uri
This commit is contained in:
parent
cf0ab8e1f3
commit
8e9ba056d7
3 changed files with 4 additions and 3 deletions
|
@ -1477,7 +1477,7 @@ gst_dash_demux_get_next_fragment_set (GstDashDemux * demux)
|
||||||
GstActiveStream *stream;
|
GstActiveStream *stream;
|
||||||
GstFragment *download, *header;
|
GstFragment *download, *header;
|
||||||
GList *fragment_set;
|
GList *fragment_set;
|
||||||
const gchar *next_fragment_uri;
|
gchar *next_fragment_uri;
|
||||||
GstClockTime duration;
|
GstClockTime duration;
|
||||||
GstClockTime timestamp;
|
GstClockTime timestamp;
|
||||||
gboolean discont;
|
gboolean discont;
|
||||||
|
@ -1512,6 +1512,7 @@ gst_dash_demux_get_next_fragment_set (GstDashDemux * demux)
|
||||||
|
|
||||||
download = gst_uri_downloader_fetch_uri (demux->downloader,
|
download = gst_uri_downloader_fetch_uri (demux->downloader,
|
||||||
next_fragment_uri);
|
next_fragment_uri);
|
||||||
|
g_free (next_fragment_uri);
|
||||||
|
|
||||||
if (download == NULL)
|
if (download == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -2750,7 +2750,7 @@ gst_mpd_client_setup_streaming (GstMpdClient * client,
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gst_mpd_client_get_next_fragment (GstMpdClient * client,
|
gst_mpd_client_get_next_fragment (GstMpdClient * client,
|
||||||
guint indexStream, gboolean *discontinuity, const gchar **uri,
|
guint indexStream, gboolean *discontinuity, gchar **uri,
|
||||||
GstClockTime *duration, GstClockTime *timestamp)
|
GstClockTime *duration, GstClockTime *timestamp)
|
||||||
{
|
{
|
||||||
GstActiveStream *stream = NULL;
|
GstActiveStream *stream = NULL;
|
||||||
|
|
|
@ -449,7 +449,7 @@ gboolean gst_mpd_client_setup_representation (GstMpdClient *client, GstActiveStr
|
||||||
void gst_mpd_client_get_current_position (GstMpdClient *client, GstClockTime * timestamp);
|
void gst_mpd_client_get_current_position (GstMpdClient *client, GstClockTime * timestamp);
|
||||||
GstClockTime gst_mpd_client_get_duration (GstMpdClient *client);
|
GstClockTime gst_mpd_client_get_duration (GstMpdClient *client);
|
||||||
GstClockTime gst_mpd_client_get_target_duration (GstMpdClient *client);
|
GstClockTime gst_mpd_client_get_target_duration (GstMpdClient *client);
|
||||||
gboolean gst_mpd_client_get_next_fragment (GstMpdClient *client, guint indexStream, gboolean *discontinuity, const gchar **uri, GstClockTime *duration, GstClockTime *timestamp);
|
gboolean gst_mpd_client_get_next_fragment (GstMpdClient *client, guint indexStream, gboolean *discontinuity, gchar **uri, GstClockTime *duration, GstClockTime *timestamp);
|
||||||
gboolean gst_mpd_client_get_next_header (GstMpdClient *client, const gchar **uri, guint stream_idx);
|
gboolean gst_mpd_client_get_next_header (GstMpdClient *client, const gchar **uri, guint stream_idx);
|
||||||
gboolean gst_mpd_client_is_live (GstMpdClient * client);
|
gboolean gst_mpd_client_is_live (GstMpdClient * client);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue