Stefan Lucke schrieb: > Quoting Malcolm Caldwell <[EMAIL PROTECTED]>: > >> On Wed, 2006-09-27 at 00:17 +0300, Marko Mäkelä wrote: >>> On Tue, Sep 26, 2006 at 10:56:41PM +0200, Martin Wache wrote: >>>> Laz, how do you suspend your vdr? Do you use Marko's patch or the >>>> softdevice suspend method? >>> I understood that he just pauses some recording, and he sometimes gets >>> the hang when he resumes playback. There was a suspend plugin >>> for some vdr 1.3 version that did roughly so. >> Just to say me-too. I have had a hang after resuming a paused playback. >> I can not say how many times this has happened, but it would be at least >> 5. > > Just another me too. If I remember my situation correct, I've > had 2 or 3 times the same with xv-out: paused video, window blanked. > After continuing playback, there was a short time with audio and > nothing else. Had to CONTROL-C (killall -9) from command window. > > There are some essential operations in audio-alsa.c , which are > not protected by handleMutex: Suspend(), Resume() and calling > snd_pcm_mmap_writei() after while (paused) usleep(1000); . > That is true, those calls are unprotected.
However, the audio-out is during normal operation only called from one thread, namely the audio-decoder. Only if the user request a suspend, the mpegdecoder thread suspends the audio-out. But that wasn't the case, so that audio-out was only called by one thread, and that means locks should not be needed. Bye, Martin _______________________________________________ Softdevice-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/softdevice-devel
