stereoplay
diff src/stereoplay.c @ 6:8fc045d33d62
updated the code to work with more recent ffmpeg versions
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 26 Sep 2020 14:26:39 +0300 |
parents | acf3d25f23cb |
children |
line diff
1.1 --- a/src/stereoplay.c Thu Nov 03 22:01:01 2011 +0200 1.2 +++ b/src/stereoplay.c Sat Sep 26 14:26:39 2020 +0300 1.3 @@ -146,11 +146,13 @@ 1.4 _exit(0); 1.5 } 1.6 1.7 + fcntl(pfd[0], F_SETFL, fcntl(pfd[0], F_GETFL) | O_NONBLOCK); 1.8 + 1.9 dpy = glXGetCurrentDisplay(); 1.10 xsock = ConnectionNumber(dpy); 1.11 1.12 for(;;) { 1.13 - int res; 1.14 + /*int res; 1.15 fd_set rdset; 1.16 1.17 FD_ZERO(&rdset); 1.18 @@ -171,8 +173,9 @@ 1.19 upd_frame = 1; 1.20 glutPostRedisplay(); 1.21 } 1.22 - } 1.23 + }*/ 1.24 1.25 + upd_frame = 1; 1.26 glutMainLoopEvent(); 1.27 if(busy_loop) { 1.28 glutPostRedisplay();