From 019bc678371978bae0c1cfa2ac6de8d0a4f3ab54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 29 Feb 2016 11:53:19 +0200 Subject: [PATCH] sdpdemux: Set caps to application/x-rtp instead of application/x-unknown as returned by the SDP helpers The SDP helpers can't know if this is going to be RTP, SRTP, or .... https://bugzilla.gnome.org/show_bug.cgi?id=762860 --- gst/sdp/gstsdpdemux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c index b0fd0d9eca..ae3bbe4e2b 100644 --- a/gst/sdp/gstsdpdemux.c +++ b/gst/sdp/gstsdpdemux.c @@ -393,10 +393,15 @@ gst_sdp_demux_create_stream (GstSDPDemux * demux, GstSDPMessage * sdp, gint idx) /* we must have a payload. No payload means we cannot create caps */ /* FIXME, handle multiple formats. */ if ((payload = gst_sdp_media_get_format (media, 0))) { + GstStructure *s; + stream->pt = atoi (payload); /* convert caps */ stream->caps = gst_sdp_media_get_caps_from_media (media, stream->pt); + s = gst_caps_get_structure (stream->caps, 0); + gst_structure_set_name (s, "application/x-rtp"); + if (stream->pt >= 96) { /* If we have a dynamic payload type, see if we have a stream with the * same payload number. If there is one, they are part of the same