hls: m3u8: remove unused _get_current_fragment_duration() function
authorTim-Philipp Müller <tim@centricular.com>
Sat, 28 Nov 2015 00:12:04 +0000 (00:12 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 1 Dec 2015 17:51:34 +0000 (17:51 +0000)
ext/hls/m3u8.c
ext/hls/m3u8.h

index 0717fea..4d203d4 100644 (file)
@@ -1353,29 +1353,6 @@ out:
   return ret;
 }
 
-guint64
-gst_m3u8_client_get_current_fragment_duration (GstM3U8Client * client)
-{
-  guint64 dur = GST_CLOCK_TIME_NONE;
-  GList *l;
-
-  g_return_val_if_fail (client != NULL, 0);
-
-  GST_M3U8_CLIENT_LOCK (client);
-
-  for (l = client->current->files; l != NULL; l = l->next) {
-    GstM3U8MediaFile *file = l->data;
-
-    if (file->sequence == client->sequence) {
-      dur = file->duration;
-      break;
-    }
-  }
-
-  GST_M3U8_CLIENT_UNLOCK (client);
-  return dur;
-}
-
 gboolean
 gst_m3u8_client_get_seek_range (GstM3U8Client * client, gint64 * start,
     gint64 * stop)
index 95f9310..fa28810 100644 (file)
@@ -149,8 +149,6 @@ gboolean        gst_m3u8_client_is_live             (GstM3U8Client * client);
 GList *         gst_m3u8_client_get_playlist_for_bitrate (GstM3U8Client * client,
                                                           guint           bitrate);
 
-guint64         gst_m3u8_client_get_current_fragment_duration (GstM3U8Client * client);
-
 gboolean        gst_m3u8_client_get_seek_range      (GstM3U8Client * client,
                                                      gint64        * start,
                                                      gint64        * stop);