rtsp-session: Handle the case when timeout=0
authorJonathan Karlsson <jonakn@axis.com>
Wed, 9 Aug 2017 09:52:38 +0000 (11:52 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 15 Nov 2017 15:20:33 +0000 (17:20 +0200)
commit0f87202a71e5560491be66182773e923f7b094ab
tree1c38766e035613cc548fadadbe89ced8721c2640
parentc3e53322d934af47e697c94945112f06572555e3
rtsp-session: Handle the case when timeout=0

According to the documentation, a timeout of value 0 means
that the session never timeouts. This adds handling of that.
If timeout=0 we just return with a -1 from
gst_rtsp_session_next_timeout_usec ().

https://bugzilla.gnome.org/show_bug.cgi?id=785058
gst/rtsp-server/rtsp-session.c
tests/check/gst/rtspserver.c