patch-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch-gnuradio] audio_alsa_source.cc: Check pcm state before messing wi


From: Alexandru Csete
Subject: [Patch-gnuradio] audio_alsa_source.cc: Check pcm state before messing with hw_params
Date: Sun, 10 Jul 2011 23:39:28 +0200

Greetings,

If a C++ flowgraph containing an audio source (ALSA) is reconfigured
during runtime, the application will crash with:

audio_alsa_source[hw:1]: snd_pcm_hw_params failed: File descriptor in bad state
terminate called after throwing an instance of 'std::runtime_error'
  what():  check topology failed on audio_alsa_source(2) using
ninputs=0, noutputs=2
Aborted

Some time ago the same problem has been fixed for the audio_alsa_sink
and the attached patch contains the very same fix for the
audio_alsa_source.

Alex

Attachment: 0001-Check-pcm-state-before-messing-with-hw_params-preven.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]