typefind: fix detection of HLS playlists with alternative renditions
https://bugzilla.gnome.org/show_bug.cgi?id=699923
This commit is contained in:
parent
7ff4f8f4d4
commit
3ad2dec005
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user