mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue