From 7e62415b5c1cc29a81d444756dd49f5b41c4e00e Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Mon, 22 Jan 2018 12:46:34 +0200 Subject: 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", ""); } } } -- cgit v1.2.3