mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
mssdemux: add the correct caps to the outgoing stream
mssdemux outputs a quicktime variant, named mss-fragment
This commit is contained in:
parent
32d8a72bfc
commit
edea61b758
1 changed files with 5 additions and 1 deletions
|
@ -344,9 +344,13 @@ static void
|
||||||
gst_mss_demux_expose_stream (GstMssDemux * mssdemux, GstMssDemuxStream * stream)
|
gst_mss_demux_expose_stream (GstMssDemux * mssdemux, GstMssDemuxStream * stream)
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
GstCaps *media_caps;
|
||||||
GstPad *pad = stream->pad;
|
GstPad *pad = stream->pad;
|
||||||
|
|
||||||
caps = gst_mss_stream_get_caps (stream->manifest_stream);
|
media_caps = gst_mss_stream_get_caps (stream->manifest_stream);
|
||||||
|
caps = gst_caps_new_simple ("video/quicktime", "variant", G_TYPE_STRING,
|
||||||
|
"mss-fragmented", "media-caps", GST_TYPE_CAPS, media_caps, NULL);
|
||||||
|
gst_caps_unref (media_caps);
|
||||||
|
|
||||||
if (caps) {
|
if (caps) {
|
||||||
gst_pad_set_caps (pad, caps);
|
gst_pad_set_caps (pad, caps);
|
||||||
|
|
Loading…
Reference in a new issue