[MPlayer-users] alsa9 + multiple files
joy
joy at pingfm.org
Sat Jun 29 22:36:02 CEST 2002
On Fri, Jun 28, 2002 at 12:56:11PM +0000, jeff wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> when i try to play multiple files from the command line with alsa9 as audio out mplayer crashes on the 2nd file. i know the alsa support is alpha but i figured id post it anyway.
>
> i get something like this after the first file:
>
>
> ALSA lib pcm.c:1711:(snd_pcm_open_noupdate) Unknown PCM Sample.avi
> alsa-init: playback open error: No such file or directory
> couldn't open/init audio device -> NOSOUND
> Audio: no sound!!!
> Start playing...
> mplayer: pcm.c:798: snd_pcm_status: Assertion `pcm && status' failed.
>
> MPlayer interrupted by signal 6 in module: unknown
> - MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _o
> r_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault,
it seems that this file you wanted to play has no sound or the
audio-codec couldn't be detected. right?
the crash is caused by mplayer cause its try to call an audio-function
due the audio-driver is not initialized. maybe its fixed in current
cvs, if not try this patch i attached.
ao_alsa9 is out of alpha now, better buffer-handling is added, try
cuurent cvs.
i also added controls (get_sound/set_sound) and mmap and noblocking
support, which i will commit in a few days. it works really stable for
me, but needs some further testing, so i hope no oss-emu will be need
anymore if running on alsa9.
--
regards
____-
joy
________/\---------%%%___________-----------
webcast every sunday 2000 cest at pingfm.org
pgp key at: x-hkp://wwwkeys.de.pgp.net
-------------- next part --------------
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.519
diff -u -p -r1.519 mplayer.c
--- mplayer.c 28 Jun 2002 17:13:18 -0000 1.519
+++ mplayer.c 28 Jun 2002 18:19:27 -0000
@@ -1564,7 +1564,7 @@ if(!sh_video) {
/*========================== PLAY VIDEO ============================*/
float frame_time=next_frame_time;
- float delay=audio_out->get_delay()*0.5;
+ float delay=!sh_audio?0:audio_out->get_delay()*0.5;
vo_pts=sh_video->timer*90000.0;
vo_fps=sh_video->fps;
More information about the MPlayer-users
mailing list