summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-02-29 11:53:19 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-02-29 12:03:43 +0200
commit019bc678371978bae0c1cfa2ac6de8d0a4f3ab54 (patch)
treeecb160ca7ef105c67a3f9b14658c9aecd951aef9
parentcbfbc6ed88a5a2a9635e98b525eb07c5ed4bdbb8 (diff)
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
-rw-r--r--gst/sdp/gstsdpdemux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c
index b0fd0d9ec..ae3bbe4e2 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