GNOME Bugzilla – Bug 144941
alsasink assertion failure on ctrl+z and fg
Last modified: 2004-12-22 21:47:04 UTC
If I use ctrl+z to stop gst-launch while it's playing, and then try to resume playback, it dies complaining about alsa. If I revert to 5 days ago (Sticky Date: 2004.06.19.19.42.37), it works properly $ gst-launch-0.8 filesrc location=./Mes\ CDs/Gorillaz/Gorillaz/01\ -\ Re-Hash.mp3 ! spider ! alsasink EXECUTION du tube en cours ... [1]+ Stopped gst-launch-0.8 filesrc location=./Mes\ CDs/Gorillaz/Gorillaz/01\ -\ Re-Hash.mp3 ! spider ! alsasink teuf@grincheux:/media/mp3$ fg gst-launch-0.8 filesrc location=./Mes\ CDs/Gorillaz/Gorillaz/01\ -\ Re-Hash.mp3 ! spider ! alsasink ERROR (1088106097:775822) alsa( 9155) gstalsa.c(1278):gst_alsa_xrun_recovery:<alsasink0> (null) ERROR (1088106097:776376) alsa( 9155) gstalsa.c(1278):gst_alsa_xrun_recovery:<alsasink0> Error starting audio after xrun ERROR: from element /pipeline0/alsasink0: GStreamer encountered a general supporting library error. Additional debug info: gstalsa.c(1278): gst_alsa_xrun_recovery: /pipeline0/alsasink0: Error starting audio after xrun [Invalid UTF-8] ERROR (1088106097:776828) \x1b[00m alsa\x1b[00m(\x1b[336m 9155\x1b[00m) \x1b[00mgstalsa.c(1191):gst_alsa_pcm_wait:<alsasink0>\x1b[00m error waiting for alsa pcm: (-4: Appel syst\xe8me interrompu) ERROR (1088106097:776914) scheduler( 9155) gstoptimalscheduler.c(2392):gst_opt_scheduler_iterate:<GstOptScheduler@0x8186bb0> in error state Execution ended after 72 iterations (sum 2616729000 ns, average 36343458 ns, min 30000 ns, max 936929000 ns).
It has been fixed by * ext/alsa/gstalsa.c: (gst_alsa_xrun_recovery): use our own functions for restarting the alsa device. * ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event): I should apply patches myself - use MIN for the third argument, not the second, this fixes seeking it seems, I can no longer reproduce with those patches applied, but I can if I revert them.