diff options
author | Arun Raghavan <arun@arunraghavan.net> | 2016-06-21 17:19:39 +0530 |
---|---|---|
committer | Arun Raghavan <arun@arunraghavan.net> | 2016-06-21 17:38:21 +0530 |
commit | effb3f1d234dc7cffb1be15051ff7194caa39f1a (patch) | |
tree | 54119b224c2c1896167cb97252816239682fb26e /src/pulsecore/sink-input.c | |
parent | a07b6a8cda7fd088b60ab59186b486a7b0987282 (diff) | |
download | pulseaudio-effb3f1d234dc7cffb1be15051ff7194caa39f1a.tar.gz |
sink-input,source-output: Fix crasher while setting property
We were missing a case where a property is first set, and then cleared
by setting a NULL value.
Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
Diffstat (limited to 'src/pulsecore/sink-input.c')
-rw-r--r-- | src/pulsecore/sink-input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index 361b44593..c7d99efbf 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -1435,7 +1435,7 @@ void pa_sink_input_set_property(pa_sink_input *i, const char *key, const char *v if (pa_proplist_contains(i->proplist, key)) { old_value = pa_xstrdup(pa_proplist_gets(i->proplist, key)); - if (old_value) { + if (value && old_value) { if (pa_streq(value, old_value)) goto finish; } else |