From: Thiago Santos Date: Thu, 20 Dec 2012 04:07:18 +0000 (-0300) Subject: mssdemux: add the correct caps to the outgoing stream X-Git-Tag: 1.19.3~507^2~13737 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edea61b758329b92fa972007309c5384cefaba87;p=platform%2Fupstream%2Fgstreamer.git mssdemux: add the correct caps to the outgoing stream mssdemux outputs a quicktime variant, named mss-fragment --- 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);