return a sample rate of (0) instead of (0, 1) when a fatal error occurs

This commit is contained in:
Dimitri Stolnikov 2013-01-10 20:35:00 +01:00
parent d243abe2d7
commit 241fc1922b
1 changed files with 1 additions and 1 deletions

View File

@ -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