[Alsasrc] System hang once disconnect the device, while pipeline is alive

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Dec 19 16:06:58 PST 2012


On Sun, 2012-12-09 at 22:15 -0800, pawan.ec wrote:

Hi,

> I am gettign this behaviour:
> 
> 1. Create pipeline containing the AlsaSrc, Caps, and alsasink.
> 2. set state to Playing
> 3. disconnect device (i.e. alsasrc, which is something like hw:2,0)
> 
> Now if i get the sound card removal event in time i set the pipeline state
> to null and everything works fine.
> But if it is delayed then my app hangs (at the
> gst_element_set_state(m_AudioPipeline, GST_STATE_NULL)) and below is the
> continuous error which i am getting after that.
> 
> SNDRV_PCM_IOCTL_PREPARE failed (-19): No such device
> 
> Please help, i am very much new to audio so not getting the clear idea.

It was a bug in alsasrc/GstAudio*Src. It's fixed now in git master.
Thanks for filing a bug about it in bugzilla (assuming it was you, I
don't remember).

 Cheers
  -Tim



More information about the gstreamer-devel mailing list