[MPlayer-dev-eng] [patch] release /dev/dsp on pause
D Richard Felker III
dalias at aerifal.cx
Mon Aug 26 03:31:14 CEST 2002
I don't know if this is acceptable as I've got it right now, but
here's a patch to make mplayer free up /dev/dsp when it's paused
(w/ao_oss). MPlayer crashes if you unpause and something else has
claimed the device, btu I'm not sure there's really any clean way
around that. Someone should at least take a look and see if a change
like this is reasonable/feasible.
Rich
-------------- next part --------------
Index: libao2/ao_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_oss.c,v
retrieving revision 1.29
diff -u -r1.29 ao_oss.c
--- libao2/ao_oss.c 4 Aug 2002 18:33:26 -0000 1.29
+++ libao2/ao_oss.c 26 Aug 2002 01:43:52 -0000
@@ -256,12 +256,15 @@
static void audio_pause()
{
// for now, just call reset();
- reset();
+ //reset();
+ uninit();
+ audio_fd = -1;
}
// resume playing, after audio_pause()
static void audio_resume()
{
+ reset();
}
More information about the MPlayer-dev-eng
mailing list