rtspsrc: Fix up sendonly/recvonly attribute handling
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jan 2018 10:24:18 +0000 (12:24 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jan 2018 10:24:18 +0000 (12:24 +0200)
commitaf273b4de9eb292c0b6af63665e10ca015895902
tree3ae759bc67aadc794b0f536ec068dd7a2eefb899
parent129eecf0123b9ae467ee7033ec5b933941d73676
rtspsrc: Fix up sendonly/recvonly attribute handling

We can't handle recvonly streams, sendonly streams are perfectly fine.

The direction is the one from the point of view of the SDP offerer
(i.e. the RTSP server), and a recvonly stream would be one where the
server expects us to send media.

RFC 3264, section 5.1:
   If the offerer wishes to only send media on a stream to its peer, it
   MUST mark the stream as sendonly with the "a=sendonly" attribute.

This is mixed up in the ONVIF streaming specification examples, but
actual implementations and conformance tools seem to not care at all
about the attributes.

https://bugzilla.gnome.org/show_bug.cgi?id=792376
gst/rtsp/gstrtspsrc.c