The oggplay relies on fork() (superficially if you ask me) and does not
display anything when fork() fails (like no-mmu).  So if it fails due to
ENOSYS, play the file ourselves, otherwise dump a proper error message.

Signed-off-by: Mike Frysinger <[email protected]>
---
 user/oggplay/oggplay.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/user/oggplay/oggplay.c b/user/oggplay/oggplay.c
index 42aa73b..56d5a32 100644
--- a/user/oggplay/oggplay.c
+++ b/user/oggplay/oggplay.c
@@ -904,7 +904,10 @@ nextfile:
                                if (errno != EINTR)
                                        break;
                }
-       }
+       } else if (errno == ENOSYS)
+               play_one(argv[argnr]);
+       else
+               perror("fork()");
 
        if (slptime)
                sleep(slptime);
-- 
1.6.2

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to