summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/hls/m3u8.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c
index eca283b42..4265f9776 100644
--- a/ext/hls/m3u8.c
+++ b/ext/hls/m3u8.c
@@ -601,10 +601,11 @@ gst_m3u8_update (GstM3U8Client * client, GstM3U8 * self, gchar * data,
} else {
self->iframe_lists = g_list_append (self->iframe_lists, new_list);
}
- } else if (list != NULL) {
- GST_WARNING ("Found a list without a uri..., dropping");
- gst_m3u8_free (list);
} else {
+ if (list != NULL) {
+ GST_WARNING ("Found a list without a uri..., dropping");
+ gst_m3u8_free (list);
+ }
list = new_list;
}
} else if (g_str_has_prefix (data_ext_x, "TARGETDURATION:")) {