mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
two simple fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@95 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
d6d50b0eab
commit
765d2f70c7
2 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ struct pa_modargs *pa_modargs_new(const char *args, const char* const* valid_key
|
||||||
if (args) {
|
if (args) {
|
||||||
enum { WHITESPACE, KEY, VALUE_START, VALUE_SIMPLE, VALUE_DOUBLE_QUOTES, VALUE_TICKS } state;
|
enum { WHITESPACE, KEY, VALUE_START, VALUE_SIMPLE, VALUE_DOUBLE_QUOTES, VALUE_TICKS } state;
|
||||||
const char *p, *key, *value;
|
const char *p, *key, *value;
|
||||||
size_t key_len, value_len;
|
size_t key_len = 0, value_len = 0;
|
||||||
|
|
||||||
key = value = NULL;
|
key = value = NULL;
|
||||||
state = WHITESPACE;
|
state = WHITESPACE;
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ struct pa_resampler {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct pa_resampler* pa_resampler_new(const struct pa_sample_spec *a, const struct pa_sample_spec *b) {
|
struct pa_resampler* pa_resampler_new(const struct pa_sample_spec *a, const struct pa_sample_spec *b) {
|
||||||
struct pa_resampler *r;
|
struct pa_resampler *r = NULL;
|
||||||
int err;
|
int err;
|
||||||
assert(a && b && pa_sample_spec_valid(a) && pa_sample_spec_valid(b));
|
assert(a && b && pa_sample_spec_valid(a) && pa_sample_spec_valid(b));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue