title = NULL;
data += 7;
while (TRUE) {
+ gchar *r;
+
end = g_utf8_strchr (data, -1, '\n');
if (end)
*end = '\0';
+ r = g_utf8_strchr (data, -1, '\r');
+ if (r)
+ *r = '\0';
+
if (data[0] != '#') {
- gchar *r;
if (duration <= 0 && list == NULL) {
GST_LOG ("%s: got line without EXTINF or EXTSTREAMINF, dropping", data);
if (data == NULL)
goto next_line;
- r = g_utf8_strchr (data, -1, '\r');
- if (r)
- *r = '\0';
-
if (list != NULL) {
if (g_list_find_custom (self->lists, data,
(GCompareFunc) _m3u8_compare_uri)) {