]> git.tue.mpg.de Git - paraslash.git/commitdiff
Simplify vss_preselect().
authorAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 05:49:37 +0000 (07:49 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 05:49:37 +0000 (07:49 +0200)
Obviously an equivalent transformation.

vss.c

diff --git a/vss.c b/vss.c
index 74fdb2b4bbd5a0abec2a0374cac19026e95e10cc..a7542677249e14ad71182d8d276c55177e1c0ca7 100644 (file)
--- 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;