diff options
Diffstat (limited to 'multimedia/smpeg/patches/patch-aa')
-rw-r--r-- | multimedia/smpeg/patches/patch-aa | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/multimedia/smpeg/patches/patch-aa b/multimedia/smpeg/patches/patch-aa new file mode 100644 index 00000000000..697bd22594b --- /dev/null +++ b/multimedia/smpeg/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.1 2004/06/26 09:16:10 grant Exp $ + +--- plaympeg.c.orig Tue Feb 4 15:59:22 2003 ++++ plaympeg.c Tue Feb 4 15:59:48 2003 +@@ -492,6 +492,7 @@ + int fd; + char buf[32]; + int status; ++ int (*audio_init)(); + + /* Get the command line options */ + use_audio = 1; +@@ -600,7 +601,12 @@ + } + + if ( use_audio ) { +- if ((SDL_Init(SDL_INIT_AUDIO) < 0) || !SDL_AudioDriverName(buf, 1)) { ++ if ( use_video ) ++ audio_init = SDL_InitSubSystem; ++ else ++ audio_init = SDL_Init; ++ ++ if ((audio_init(SDL_INIT_AUDIO) < 0) || !SDL_AudioDriverName(buf, 1)) { + fprintf(stderr, "Warning: Couldn't init SDL audio: %s\n", + SDL_GetError()); + fprintf(stderr, "Will ignore audio stream\n"); |