multifdsink: Update current time after every write

Each write will update the last_activity_time and otherwise we would
compare against a too old current time and immediately timeout because
current time is smaller than last activity time (overflow).
This commit is contained in:
Sebastian Dröge 2013-07-28 13:23:41 +02:00
parent 930bfe3cbc
commit 692fd81ac7

View file

@ -685,15 +685,15 @@ gst_multi_fd_sink_handle_client_write (GstMultiFdSink * sink,
GstMultiHandleClient *mhclient = (GstMultiHandleClient *) client;
int fd = mhclient->handle.fd;
g_get_current_time (&nowtv);
now = GST_TIMEVAL_TO_TIME (nowtv);
flushing = mhclient->status == GST_CLIENT_STATUS_FLUSHING;
more = TRUE;
do {
gint maxsize;
g_get_current_time (&nowtv);
now = GST_TIMEVAL_TO_TIME (nowtv);
if (!mhclient->sending) {
/* client is not working on a buffer */
if (mhclient->bufpos == -1) {