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:29:47 +0000 (09:29 +0200)
commit30b2abaddd84a7f8bc61c8ebdc58b934c94712b4
treee2403f2dca6c6dcc5d250c9cb98961af85aef181
parent74cc9865939d97cfafeb3aad94dc1596773ef82e
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