From: Andre Noll Date: Wed, 31 Oct 2007 02:41:14 +0000 (+0100) Subject: vss.c: Check status afs socket fd for writing more often. X-Git-Tag: v0.3.0~162 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=dd68784453f7d9b782e507a39ef5f7a384ce93a3;ds=sidebyside vss.c: Check status afs socket fd for writing more often. Also check it if the socket status is AFS_SOCKET_CHECK_FOR_WRITE. --- diff --git a/vss.c b/vss.c index aab05169..9ac086b6 100644 --- a/vss.c +++ b/vss.c @@ -321,7 +321,8 @@ struct timeval *vss_preselect(fd_set *rfds, fd_set *wfds, int *max_fileno) return tv; if (!map && vss_playing() && !(mmd->new_vss_status_flags & VSS_NOMORE)) { - if (afsss == AFS_SOCKET_READY) { + if (afsss == AFS_SOCKET_READY || + afsss == AFS_SOCKET_CHECK_FOR_WRITE) { PARA_DEBUG_LOG("ready and playing, but no audio file\n"); para_fd_set(afs_socket, wfds, max_fileno); afsss = AFS_SOCKET_CHECK_FOR_WRITE;