hls: m3u8: remove unused m3u8 client update_failed_count field
authorTim-Philipp Müller <tim@centricular.com>
Fri, 27 Nov 2015 19:21:22 +0000 (19:21 +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 e9256a4..0717fea 100644 (file)
@@ -766,7 +766,6 @@ gst_m3u8_client_new (const gchar * uri, const gchar * base_uri)
   client->current_file_duration = GST_CLOCK_TIME_NONE;
   client->sequence = -1;
   client->sequence_position = 0;
-  client->update_failed_count = 0;
   client->highest_sequence_number = -1;
   client->duration = GST_CLOCK_TIME_NONE;
   g_mutex_init (&client->lock);
@@ -793,7 +792,6 @@ gst_m3u8_client_set_current (GstM3U8Client * self, GstM3U8 * m3u8)
   GST_M3U8_CLIENT_LOCK (self);
   if (m3u8 != self->current) {
     self->current = m3u8;
-    self->update_failed_count = 0;
     self->duration = GST_CLOCK_TIME_NONE;
     self->current_file = NULL;
   }
@@ -815,10 +813,8 @@ gst_m3u8_client_update (GstM3U8Client * self, gchar * data)
   if (!gst_m3u8_update (self, m3u8, data, &updated))
     goto out;
 
-  if (!updated) {
-    self->update_failed_count++;
+  if (!updated)
     goto out;
-  }
 
   if (self->current && !self->current->files) {
     GST_ERROR ("Invalid media playlist, it does not contain any media files");
index d9e6222..95f9310 100644 (file)
@@ -89,7 +89,6 @@ struct _GstM3U8Client
 {
   GstM3U8 *main;                /* main playlist */
   GstM3U8 *current;
-  guint update_failed_count;
   GList *current_file;
   GstClockTime current_file_duration; /* Duration of current fragment */
   gint64 sequence;              /* the next sequence for this client */