diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-01-22 12:46:34 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-02-09 11:08:29 +0200 |
commit | 7e62415b5c1cc29a81d444756dd49f5b41c4e00e (patch) | |
tree | cdc2c828c2b2093e4dfce0050234c07e8ca590a3 /gst/rtsp-server | |
parent | 2f7820ace68903aa8ecf175d3e8ed6b2f4e248fc (diff) |
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.
Diffstat (limited to 'gst/rtsp-server')
-rw-r--r-- | gst/rtsp-server/rtsp-onvif-media.c | 4 |
1 files 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", ""); } } } |