From 3d275b1345b76151418e3f56ed014d9089ac1a57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 22 Jan 2018 12:46:34 +0200 Subject: [PATCH] rtsp-server: Switch around sendonly/recvonly attributes They are wrong in the ONVIF streaming spec. The backchannel should be recvonly and the normal media should be sendonly: direction is always from the point of view of the SDP offerer (the server) according to RFC 3264. --- gst/rtsp-server/rtsp-onvif-media.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp-server/rtsp-onvif-media.c b/gst/rtsp-server/rtsp-onvif-media.c index 8cd7261..261010d 100644 --- a/gst/rtsp-server/rtsp-onvif-media.c +++ b/gst/rtsp-server/rtsp-onvif-media.c @@ -135,12 +135,12 @@ gst_rtsp_onvif_media_setup_sdp (GstRTSPMedia * media, GstSDPMessage * sdp, if (sinkpad) { GstRTSPOnvifMedia *onvif_media = GST_RTSP_ONVIF_MEDIA (media); - gst_sdp_media_add_attribute (smedia, "sendonly", ""); + gst_sdp_media_add_attribute (smedia, "recvonly", ""); if (onvif_media->priv->backchannel_bandwidth > 0) gst_sdp_media_add_bandwidth (smedia, GST_SDP_BWTYPE_AS, onvif_media->priv->backchannel_bandwidth); } else { - gst_sdp_media_add_attribute (smedia, "recvonly", ""); + gst_sdp_media_add_attribute (smedia, "sendonly", ""); } } } -- 2.7.4