hlsdemux: m3u8: clean-up: remove unused argument in function call
authorTim-Philipp Müller <tim@centricular.com>
Tue, 1 Sep 2015 11:48:38 +0000 (12:48 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 23 Oct 2015 17:19:55 +0000 (18:19 +0100)
ext/hls/m3u8.c
ext/hls/m3u8.h

index 1e9f3f8..8cb6989 100644 (file)
@@ -122,7 +122,7 @@ gst_m3u8_media_file_copy (const GstM3U8MediaFile * self, gpointer user_data)
 }
 
 static GstM3U8 *
-_m3u8_copy (const GstM3U8 * self, GstM3U8 * parent)
+_m3u8_copy (const GstM3U8 * self)
 {
   GstM3U8 *dup;
 
@@ -148,11 +148,10 @@ _m3u8_copy (const GstM3U8 * self, GstM3U8 * parent)
 
   /* private */
   dup->last_data = g_strdup (self->last_data);
-  dup->lists = g_list_copy_deep (self->lists, (GCopyFunc) _m3u8_copy, dup);
+  dup->lists = g_list_copy_deep (self->lists, (GCopyFunc) _m3u8_copy, NULL);
   dup->iframe_lists =
-      g_list_copy_deep (self->iframe_lists, (GCopyFunc) _m3u8_copy, dup);
+      g_list_copy_deep (self->iframe_lists, (GCopyFunc) _m3u8_copy, NULL);
   /* NOTE: current_variant will get set in gst_m3u8_copy () */
-  dup->parent = parent;
   dup->mediasequence = self->mediasequence;
   return dup;
 }
@@ -163,7 +162,7 @@ gst_m3u8_copy (const GstM3U8 * self)
   GList *entry;
   guint n;
 
-  GstM3U8 *dup = _m3u8_copy (self, NULL);
+  GstM3U8 *dup = _m3u8_copy (self);
 
   if (self->current_variant != NULL) {
     for (n = 0, entry = self->lists; entry; entry = entry->next, n++) {
@@ -531,7 +530,6 @@ gst_m3u8_update (GstM3U8Client * client, GstM3U8 * self, gchar * data,
         GstM3U8 *new_list;
 
         new_list = gst_m3u8_new ();
-        new_list->parent = self;
         new_list->iframe = iframe;
         data = data + (iframe ? 26 : 18);
         while (data && parse_attributes (&data, &a, &v)) {
index b9f0d56..7c8ac09 100644 (file)
@@ -71,7 +71,6 @@ struct _GstM3U8
   GList *lists;                 /* list of GstM3U8 from the main playlist */
   GList *iframe_lists;          /* I-frame lists from the main playlist */
   GList *current_variant;       /* Current variant playlist used */
-  GstM3U8 *parent;              /* main playlist (if any) */
   gint64 mediasequence;          /* EXT-X-MEDIA-SEQUENCE & increased with new media file */
 };