rtsp: Added new API for sending using GstRTSPWatch.
authorPeter Kjellerstedt <pkj@axis.com>
Mon, 17 Aug 2009 09:53:43 +0000 (11:53 +0200)
committerPeter Kjellerstedt <pkj@axis.com>
Mon, 24 Aug 2009 11:19:46 +0000 (13:19 +0200)
commit066f9be5c9233a0af37114589406662ead7cbe27
treec6a87ceed61f23e3cef2fbee997d06fb5d9fec28
parent0af04aa4a8bdb8837f9290fde7c729a17fdb5947
rtsp: Added new API for sending using GstRTSPWatch.

The new API to send messages using GstRTSPWatch will first try to send the
message immediately. Then, if that failed (or the message was not sent
fully), it will queue the remaining message for later delivery. This avoids
unnecessary context switches, and makes it possible to keep track of
whether the connection is blocked (the unblocking of the connection is
indicated by the reception of the message_sent signal).

This also deprecates the old API (gst_rtsp_watch_queue_data() and
gst_rtsp_watch_queue_message().)

API: gst_rtsp_watch_write_data()
API: gst_rtsp_watch_send_message()
gst-libs/gst/rtsp/gstrtspconnection.c
gst-libs/gst/rtsp/gstrtspconnection.h