From 241fc1922b6b36905b0633a4db759d975d6ca910 Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Thu, 10 Jan 2013 20:35:00 +0100 Subject: [PATCH] return a sample rate of (0) instead of (0, 1) when a fatal error occurs --- lib/osmosdr_source_c_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/osmosdr_source_c_impl.cc b/lib/osmosdr_source_c_impl.cc index ed78423..47b1e48 100644 --- a/lib/osmosdr_source_c_impl.cc +++ b/lib/osmosdr_source_c_impl.cc @@ -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