GstActiveStream *stream;
GstFragment *download, *header;
GList *fragment_set;
- const gchar *next_fragment_uri;
+ gchar *next_fragment_uri;
GstClockTime duration;
GstClockTime timestamp;
gboolean discont;
download = gst_uri_downloader_fetch_uri (demux->downloader,
next_fragment_uri);
+ g_free (next_fragment_uri);
if (download == NULL)
return FALSE;
gboolean
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)
{
GstActiveStream *stream = NULL;
void gst_mpd_client_get_current_position (GstMpdClient *client, GstClockTime * timestamp);
GstClockTime gst_mpd_client_get_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_is_live (GstMpdClient * client);