core-format: Add pa_format_info_get_rate()
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Mon, 25 Nov 2013 12:34:58 +0000 (14:34 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Wed, 8 Jan 2014 19:26:39 +0000 (21:26 +0200)
commit85a3f560d1089ad595cde6181a88cb1e72423e49
tree400b3b2580bd696e41fc658554ed8debad4f2196
parenteae16f41a4d75ab4d35ddf5045b2fd7c83430754
core-format: Add pa_format_info_get_rate()

This also fixes an issue in pa_format_info_to_sample_spec(): it did
no validation for the rate value. Now the validation is taken care of
in pa_format_info_get_rate().
src/pulse/format.c
src/pulsecore/core-format.c
src/pulsecore/core-format.h