From 81724500ec5163327b3f66ddaea30403b69988d4 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 3 Nov 2008 10:49:24 +0000 Subject: [PATCH] gst-libs/gst/rtsp/gstrtspconnection.c: Make the next call to poll not depend on previous calls to poll with or withou... Original commit message from CVS: Patch by: Damien Lespiau * 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 | 9 +++++++++ gst-libs/gst/rtsp/gstrtspconnection.c | 2 ++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index fda917e..56fd837 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-11-03 Wim Taymans + + Patch by: Damien Lespiau + + * 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 Patch by: Nick Haddad diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index aafe6cd..855dac6 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -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; -- 2.7.4