}
static GstM3U8 *
-_m3u8_copy (const GstM3U8 * self, GstM3U8 * parent)
+_m3u8_copy (const GstM3U8 * self)
{
GstM3U8 *dup;
/* 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;
}
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++) {
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)) {
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 */
};