rtspconnection: only send new data immediately if there are no queued messages
authorOgnyan Tonchev <ognyan@axis.com>
Mon, 30 Jan 2012 14:55:26 +0000 (15:55 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 17 Feb 2012 14:40:35 +0000 (14:40 +0000)
commitf6e07b65a4dd63f1168a06aa31b45020a43226f4
treeb8c940f2f758af609f706d43080b166d9e73b2e3
parent439884d628fa80e710698e9bb36f063c503b9e79
rtspconnection: only send new data immediately if there are no queued messages

Even if watch->messages->length is 0 there may still be some
data from a message that was only written partially at the
previous attempt stored in watch->write_data, so check for
that as well. We don't want to write data into the middle
of another message, which could happen when there wasn't
enough bandwidth.

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