forked from sdr/gr-osmosdr
return a sample rate of (0) instead of (0, 1) when a fatal error occurs
This commit is contained in:
parent
d243abe2d7
commit
241fc1922b
|
@ -279,7 +279,7 @@ size_t osmosdr_source_c_impl::get_num_channels()
|
|||
|
||||
osmosdr::meta_range_t osmosdr_source_c_impl::get_sample_rates()
|
||||
{
|
||||
osmosdr::meta_range_t rates(0, 0, 1);
|
||||
osmosdr::meta_range_t rates(0, 0, 0);
|
||||
|
||||
if (!_devs.empty())
|
||||
rates = _devs[0]->get_sample_rates(); // assume same devices used in the group
|
||||
|
|
Loading…
Reference in New Issue