typefind: fix detection of HLS playlists with alternative renditions
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Sun, 16 Dec 2012 15:53:30 +0000 (16:53 +0100)
committerAndoni Morales Alastruey <ylatuya@gmail.com>
Wed, 8 May 2013 11:23:52 +0000 (13:23 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=699923

gst/typefind/gsttypefindfunctions.c

index e9bffce..44b4ad9 100644 (file)
@@ -452,7 +452,8 @@ hls_type_find (GstTypeFind * tf, gpointer unused)
 
     /* Search for # comment lines */
     if (c.data[0] == '#' && (memcmp (c.data, "#EXT-X-TARGETDURATION", 21) == 0
-            || memcmp (c.data, "#EXT-X-STREAM-INF", 17) == 0)) {
+            || memcmp (c.data, "#EXT-X-STREAM-INF", 17) == 0
+            || memcmp (c.data, "#EXT-X-MEDIA", 12) == 0)) {
       gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, HLS_CAPS);
       return;
     }