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>
This commit is contained in:
Arun Raghavan 2016-06-21 17:19:39 +05:30
parent a07b6a8cda
commit effb3f1d23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -1087,7 +1087,7 @@ void pa_source_output_set_property(pa_source_output *o, const char *key, const c
if (pa_proplist_contains(o->proplist, key)) {
old_value = pa_xstrdup(pa_proplist_gets(o->proplist, key));
if (old_value) {
if (value && old_value) {
if (pa_streq(value, old_value))
goto finish;
} else