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:
parent
930bfe3cbc
commit
692fd81ac7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user