diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-12-16 16:53:30 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-05-18 11:06:16 +0100 |
commit | a314bcd969e2e68c355755e1c528cd3c267ad4e5 (patch) | |
tree | da2d4c6891ed846a359d51b15d6a56542d0021f8 | |
parent | d4d4a043e0669c4f892ac6924ba10a56a8fa5da1 (diff) |
typefind: fix detection of HLS playlists with alternative renditions
https://bugzilla.gnome.org/show_bug.cgi?id=699923
-rw-r--r-- | gst/typefind/gsttypefindfunctions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 67af291b6..582b8cf8a 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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; } |