rtspsrc: Ignore sendonly/recvonly attributes unless a backchannel is configured
authorSebastian Dröge <sebastian@centricular.com>
Thu, 1 Mar 2018 16:13:20 +0000 (18:13 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 1 Mar 2018 18:27:10 +0000 (20:27 +0200)
commitf29fe76d7e9e7e602cdb09e053640849d670b32c
tree7ab3d9e2f60fdf491489711b90c5b9923387a910
parent43e758cdb1fae78cd7072c70197800f3eef0ab71
rtspsrc: Ignore sendonly/recvonly attributes unless a backchannel is configured

This works around a bug in various ONVIF cameras that implement the
attributes the wrong way around. They still won't work with a
backchannel but at least normal playback will work for the time being.
It restores pre-1.14 behaviour where we would fail to preroll on any SDP
that lists a recvonly stream. For 1.16 a better solution should be
found.

The problem here is that the ONVIF spec has the meaning of the two
attributes the wrong way around in the examples, compared to RFC4566.

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