typefind: fix detection of HLS playlists with alternative renditions

https://bugzilla.gnome.org/show_bug.cgi?id=699923
This commit is contained in:
Andoni Morales Alastruey 2012-12-16 16:53:30 +01:00
parent 7ff4f8f4d4
commit 3ad2dec005

View 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;
}