GNOME Bugzilla – Bug 341278
[autoaudiosink] should fallback to fakesink
Last modified: 2006-08-16 11:12:22 UTC
totem in dapper refuses to start on a box without a soundcard when it's configured to use autoaudiosink. It can be reproduced using gst-launch: gst-launch-0.10 fakesrc ! autoaudiosink Setting pipeline to PAUSED ... ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2102:(snd_pcm_open_noupdate) Unknown PCM default ERROR: Pipeline doesn't want to pause. ERROR: from element /actual-sink: Could not establish connection to sound serverAdditional debug info: esdsink.c(252): gst_esdsink_open (): /actual-sink: can't open connection to esound server Setting pipeline to NULL ... FREEING pipeline ... Yes my configured alsa to have one card, but that's not a reason for autoaudiosink to give up.
Debug log: DEBUG (0x80509a0 - 0:00:00.952314000) autodetect(15018) gstautoaudiosink.c(215):gst_auto_audio_sink_find_best:<autoaudiosink0> appending error message 0x80fec90 DEBUG (0x80509a0 - 0:00:00.952963000) autodetect(15018) gstautoaudiosink.c(202):gst_auto_audio_sink_find_best:<autoaudiosink0> Testing alsasink DEBUG (0x80509a0 - 0:00:00.954131000) autodetect(15018) gstautoaudiosink.c(215):gst_auto_audio_sink_find_best:<autoaudiosink0> appending error message 0x80fecd0 DEBUG (0x80509a0 - 0:00:00.954773000) autodetect(15018) gstautoaudiosink.c(202):gst_auto_audio_sink_find_best:<autoaudiosink0> Testing osssink DEBUG (0x80509a0 - 0:00:00.955051000) autodetect(15018) gstautoaudiosink.c(215):gst_auto_audio_sink_find_best:<autoaudiosink0> appending error message 0x80fed10 DEBUG (0x80509a0 - 0:00:00.955176000) autodetect(15018) gstautoaudiosink.c(236):gst_auto_audio_sink_find_best:<autoaudiosink0> done trying DEBUG (0x80509a0 - 0:00:00.955304000) autodetect(15018) gstautoaudiosink.c(242):gst_auto_audio_sink_find_best:<autoaudiosink0> reposting message 0x80fec90
Created attachment 65315 [details] [review] Add 'fail-silently' property I am not convinced that not throwing an error message should be the default behaviour of autoaudiosink, so I propose to add a property that applications can set if they like (requires further changes to totem/apps of course).
The totem issue is bug #170719. Adding a property like in my patch is ugly and doesn't really solve anything when used as child of gconfaudiosink or so. Probably we should just plug a fakesink and send a WARNING message on the bus or so, so keeping bug open for now.
2006-08-16 Tim-Philipp Müller <tim at centricular dot net> * gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_find_best): When we can't find a usable audiosink, don't error out, but use a fake sink instead and post a warning message on the bus (#341278).