mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
dashdemux: Announce correct mpegts caps
This commit is contained in:
parent
d0524c0579
commit
220f075423
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue