lib/{source/sink}: Fix the set_sample_rate value return value if no change

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
gr3.8
Sylvain Munaut 3 years ago
parent 4d1c05e84b
commit f609a44177
  1. 2
      lib/sink_impl.cc
  2. 2
      lib/source_impl.cc

@ -269,7 +269,7 @@ double sink_impl::set_sample_rate(double rate)
_sample_rate = sample_rate;
}
return sample_rate;
return _sample_rate;
}
double sink_impl::get_sample_rate()

@ -490,7 +490,7 @@ double source_impl::set_sample_rate(double rate)
_sample_rate = sample_rate;
}
return sample_rate;
return _sample_rate;
}
double source_impl::get_sample_rate()

Loading…
Cancel
Save