From edea61b758329b92fa972007309c5384cefaba87 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 20 Dec 2012 01:07:18 -0300 Subject: [PATCH] mssdemux: add the correct caps to the outgoing stream mssdemux outputs a quicktime variant, named mss-fragment --- ext/smoothstreaming/gstmssdemux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index 4844c056a5..a9a1b72667 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -344,9 +344,13 @@ static void gst_mss_demux_expose_stream (GstMssDemux * mssdemux, GstMssDemuxStream * stream) { GstCaps *caps; + GstCaps *media_caps; 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) { gst_pad_set_caps (pad, caps); -- 2.34.1