GST_END_TEST;
+GST_START_TEST (test_hls_m3u8)
+{
+ const gchar *type;
+ GstCaps *caps = NULL;
+
+ caps = typefind_test_file ("hls.m3u8");
+ type = gst_structure_get_name (gst_caps_get_structure (caps, 0));
+ fail_unless_equals_string (type, "application/x-hls");
+
+ gst_caps_unref (caps);
+}
+
+GST_END_TEST;
+
static Suite *
typefindfunctions_suite (void)
{
tcase_add_test (tc_chain, test_ac3);
tcase_add_test (tc_chain, test_eac3);
tcase_add_test (tc_chain, test_random_data);
+ tcase_add_test (tc_chain, test_hls_m3u8);
return s;
}
--- /dev/null
+#EXTM3U
+#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=246221
+0240/prog_index.m3u8
+#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=38872
+0064/prog_index.m3u8
+#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=153059
+0150/prog_index.m3u8
+#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=455394
+0440/prog_index.m3u8
+#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=650356
+0640/prog_index.m3u8
+#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=861738
+0840/prog_index.m3u8
+#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1258987
+1240/prog_index.m3u8