From: Damien Lespiau Date: Mon, 3 Nov 2008 10:49:24 +0000 (+0000) Subject: gst-libs/gst/rtsp/gstrtspconnection.c: Make the next call to poll not depend on previ... X-Git-Tag: 1.19.3~511^2~10210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81724500ec5163327b3f66ddaea30403b69988d4;p=platform%2Fupstream%2Fgstreamer.git 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. --- 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;