diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-10-03 14:20:31 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-10-03 14:43:04 +0200 |
commit | d335280b2e131cb6faf7db6e33df6c9677441a6a (patch) | |
tree | b262c61c68f807bb0b4fd8b900992d2a90f513bb /lib/source_impl.cc | |
parent | a01a0b3cf583545a8dee443236c22e5ffea5230f (diff) |
source/sink: fix automatic bandwidth selection
Diffstat (limited to 'lib/source_impl.cc')
-rw-r--r-- | lib/source_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/source_impl.cc b/lib/source_impl.cc index 9bd7df5..075bd29 100644 --- a/lib/source_impl.cc +++ b/lib/source_impl.cc @@ -722,7 +722,7 @@ double source_impl::set_bandwidth( double bandwidth, size_t chan ) BOOST_FOREACH( source_iface *dev, _devs ) for (size_t dev_chan = 0; dev_chan < dev->get_num_channels(); dev_chan++) if ( chan == channel++ ) { - if ( _bandwidth[ chan ] != bandwidth ) { + if ( _bandwidth[ chan ] != bandwidth || 0.0f == bandwidth ) { _bandwidth[ chan ] = bandwidth; return dev->set_bandwidth( bandwidth, dev_chan ); } else { return _bandwidth[ chan ]; } |