rtspconnection: not enter in not controllable state unless it is necessary
authorMiguel Angel Cabrera Moya <madmac2501@gmail.com>
Mon, 16 May 2011 13:35:50 +0000 (15:35 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 17 May 2011 07:27:25 +0000 (09:27 +0200)
commitdf5af9cdfdd82cacff30770940d091c94cbb6d13
tree35b35e2dd5bc823e0922e401cf95279be9c74e9d
parent330456456e4401288d21d7ca1a1ecac568cabb52
rtspconnection: not enter in not controllable state unless it is necessary

When closing rtspsrc the state change blocks until the polling in the
connection timeouts. This is because the second time we loop to read a
full message controllable is set to FALSE in the poll group, even though no
message is half read.
This can be avoided by not setting controllable to FALSE the poll group
unless we had begin to read a message.

Fixes #610916
gst-libs/gst/rtsp/gstrtspconnection.c