From 220f075423b38303a53d9cb96fe4ea55addbd5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 15 May 2013 22:24:29 -0400 Subject: [PATCH] dashdemux: Announce correct mpegts caps --- ext/dash/gstdashdemux.c | 6 +++--- ext/dash/gstmpdparser.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index a5cfa518d6..5d88d56cc3 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1726,7 +1726,7 @@ gst_dash_demux_get_video_input_caps (GstDashDemux * demux, if (mimeType == NULL) return NULL; - caps = gst_caps_new_empty_simple (mimeType); + caps = gst_caps_from_string (mimeType); if (width > 0 && height > 0) { gst_caps_set_simple (caps, "width", G_TYPE_INT, width, "height", G_TYPE_INT, height, NULL); @@ -1755,7 +1755,7 @@ gst_dash_demux_get_audio_input_caps (GstDashDemux * demux, if (mimeType == NULL) return NULL; - caps = gst_caps_new_empty_simple (mimeType); + caps = gst_caps_from_string (mimeType); if (rate > 0) { gst_caps_set_simple (caps, "rate", G_TYPE_INT, rate, NULL); } @@ -1780,7 +1780,7 @@ gst_dash_demux_get_application_input_caps (GstDashDemux * demux, if (mimeType == NULL) return NULL; - caps = gst_caps_new_empty_simple (mimeType); + caps = gst_caps_from_string (mimeType); return caps; } diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 0cb3d2c12f..0871af204b 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3608,7 +3608,7 @@ gst_mpdparser_mimetype_to_caps (const gchar * mimeType) if (mimeType == NULL) return NULL; if (strcmp (mimeType, "video/mp2t") == 0) { - return "video/mpegts"; + return "video/mpegts, systemstream=(bool) true"; } else if (strcmp (mimeType, "video/mp4") == 0) { return "video/quicktime"; } else if (strcmp (mimeType, "audio/mp4") == 0) {