gst-libs/gst/rtsp/gstrtspconnection.c: Make the next call to poll not depend on previ...
authorDamien Lespiau <damien.lespiau@gmail.com>
Mon, 3 Nov 2008 10:49:24 +0000 (10:49 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 3 Nov 2008 10:49:24 +0000 (10:49 +0000)
Original commit message from CVS:
Patch by: Damien Lespiau  <damien.lespiau gmail com>
* gst-libs/gst/rtsp/gstrtspconnection.c:
(gst_rtsp_connection_write):
Make the next call to poll not depend on previous calls to poll with or
without reading from the active descriptor. Fixes #544293.

ChangeLog
gst-libs/gst/rtsp/gstrtspconnection.c

index fda917e..56fd837 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-11-03  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       Patch by: Damien Lespiau  <damien.lespiau gmail com>
+
+       * gst-libs/gst/rtsp/gstrtspconnection.c:
+       (gst_rtsp_connection_write):
+       Make the next call to poll not depend on previous calls to poll with or
+       without reading from the active descriptor. Fixes #544293.
+
 2008-10-31  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        Patch by: Nick Haddad <nick at haddads dot net>
index aafe6cd..855dac6 100644 (file)
@@ -506,6 +506,8 @@ gst_rtsp_connection_write (GstRTSPConnection * conn, const guint8 * data,
   gst_poll_set_controllable (conn->fdset, TRUE);
   gst_poll_fd_ctl_write (conn->fdset, &conn->fd, TRUE);
   gst_poll_fd_ctl_read (conn->fdset, &conn->fd, FALSE);
+  /* clear all previous poll results */
+  gst_poll_fd_ignored (conn->fdset, &conn->fd);
 
   to = timeout ? GST_TIMEVAL_TO_TIME (*timeout) : GST_CLOCK_TIME_NONE;