fbff: ignore oss device in pause command when no audio
authorAli Gholami Rudi <ali@rudi.ir>
Thu, 21 Feb 2013 13:57:36 +0000 (21 17:27 +0330)
committerAli Gholami Rudi <ali@rudi.ir>
Thu, 21 Feb 2013 13:57:36 +0000 (21 17:27 +0330)
fbff.c

diff --git a/fbff.c b/fbff.c
index 50c135f..f3cf085 100644 (file)
--- a/fbff.c
+++ b/fbff.c
@@ -209,10 +209,10 @@ static void execkey(void)
                        break;
                case ' ':
                case 'p':
-                       if (paused)
+                       if (audio && paused)
                                if (oss_open())
                                        break;
-                       if (!paused)
+                       if (audio && !paused)
                                oss_close();
                        paused = !paused;
                        sync_cur = sync_cnt;