openbsd-ports/devel/smpeg/patches/patch-audio_MPEGaudio_cpp
2002-06-08 09:21:19 +00:00

18 lines
483 B
Plaintext

$OpenBSD: patch-audio_MPEGaudio_cpp,v 1.1 2002/06/08 09:21:19 pvalchev Exp $
--- audio/MPEGaudio.cpp.orig Wed Apr 4 15:42:40 2001
+++ audio/MPEGaudio.cpp Sat Jun 8 04:15:54 2002
@@ -200,9 +200,11 @@ void
MPEGaudio:: Stop(void)
{
if ( valid_stream ) {
- SDL_LockAudio();
+ if ( sdl_audio )
+ SDL_LockAudio();
playing = false;
- SDL_UnlockAudio();
+ if ( sdl_audio )
+ SDL_UnlockAudio();
}
ResetPause();
}