mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
hls: m3u8: remove unused m3u8 client update_failed_count field
This commit is contained in:
parent
5443cca406
commit
e68914eeec
2 changed files with 1 additions and 6 deletions
|
@ -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");
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue