diff --git a/gst/hls/m3u8.c b/gst/hls/m3u8.c index cffca7d37b..449b63ee9d 100644 --- a/gst/hls/m3u8.c +++ b/gst/hls/m3u8.c @@ -492,7 +492,7 @@ gst_m3u8_client_get_next_fragment (GstM3U8Client * client, gboolean * discontinuity, const gchar ** uri, GstClockTime * duration, GstClockTime * timestamp) { - GList *l, *walk; + GList *l; GstM3U8MediaFile *file; g_return_val_if_fail (client != NULL, FALSE); @@ -518,14 +518,6 @@ gst_m3u8_client_get_next_fragment (GstM3U8Client * client, *uri = file->uri; *duration = file->duration * GST_SECOND; - *timestamp = 0; - for (walk = client->current->files; walk; walk = walk->next) { - if (walk == l) - break; - *timestamp += GST_M3U8_MEDIA_FILE (walk->data)->duration; - } - *timestamp *= GST_SECOND; - GST_M3U8_CLIENT_UNLOCK (client); return TRUE; }