rtsp: make read uncancelable when reading a message
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 26 Jun 2013 13:03:05 +0000 (15:03 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 26 Jun 2013 13:06:00 +0000 (15:06 +0200)
commit32a1deb404d585a3ffb306371013d831ca095bdd
tree87637119264b624c9fd373d794efc49d3e3eb9dc
parent97e68b36c743c67dc90fe44dc7ad5238f3d6e9c1
rtsp: make read uncancelable when reading a message

When we start to read a message, we need to continue reading until the end of
the message or else we lose track and cause parse errors. Use a variable
may_cancel to avoid cancelation after we read the first byte until we have
the complete message.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703088
gst-libs/gst/rtsp/gstrtspconnection.c