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

pawan.ec pawan.ec at gmail.com
Sun Dec 9 22:15:59 PST 2012


Hi All,

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.




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Alsasrc-System-hang-once-disconnect-the-device-while-pipeline-is-alive-tp4657320.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list