From e67fbcaf61d3d0f3ce62332f9615e5ed8e5a1c81 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 12 Apr 2008 07:49:37 +0200 Subject: [PATCH] Simplify vss_preselect(). Obviously an equivalent transformation. --- vss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vss.c b/vss.c index 74fdb2b4..a7542677 100644 --- a/vss.c +++ b/vss.c @@ -321,8 +321,7 @@ struct timeval *vss_preselect(fd_set *rfds, fd_set *wfds, int *max_fileno) goto out; if (!map && vss_playing() && !(mmd->new_vss_status_flags & VSS_NOMORE)) { - if (afsss == AFS_SOCKET_READY || - afsss == AFS_SOCKET_CHECK_FOR_WRITE) { + if (afsss != AFS_SOCKET_AFD_PENDING) { 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; -- 2.39.5