patch-gnuradio
[Top][All Lists]
Advanced

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

Re: [Patch-gnuradio] audio_alsa_source.cc: Check pcm state before messin


From: Tom Rondeau
Subject: Re: [Patch-gnuradio] audio_alsa_source.cc: Check pcm state before messing with hw_params
Date: Sun, 10 Jul 2011 22:38:51 -0400

On Sun, Jul 10, 2011 at 5:39 PM, Alexandru Csete <address@hidden> wrote:
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


Thanks! Patch applied and checked in.

Tom
 
 

reply via email to

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