rtsp-client: Allow backlog to grow while expiring session
authorBranko Subasic <branko@axis.com>
Fri, 19 Sep 2014 16:28:30 +0000 (18:28 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 24 Sep 2014 07:37:49 +0000 (10:37 +0300)
commit733ef1162b78809751ccb327cbd0b07f46e6a42e
treee06c50c32d9b712b9bfd6b7d06b0da2811e551a8
parent980553547d527fb149c6a8f8d1f9a23bd4d9c194
rtsp-client: Allow backlog to grow while expiring session

Allow the send backlog in the RTSP watch to grow to unlimited size while
attempting to bring the media pipeline to NULL due to a session
expiring.  Without this change the appsink element cannot change state
because it is blocked while rendering data in the new_sample callback.
This callback will block until it has successfully put the data into the
send backlog. There is a chance that the send backlog is full at this
point which means that the callback may block for a long time, possibly
forever. Therefore the media pipeline may also be prevented from
changing state for a long time.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=736647
gst/rtsp-server/rtsp-client.c