dashdemux: Announce correct mpegts caps

This commit is contained in:
Olivier Crête 2013-05-15 22:24:29 -04:00
parent d0524c0579
commit 220f075423
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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) {