summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-13 19:53:35 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-13 19:53:35 +0000
commite0f7e8614ce06f2b0a4bd5a38189cf97b07c0d30 (patch)
tree4954ca22cafe00c7ddba2d17b1b2881b154fe452 /src/pulsecore
parent79cb80c5740dd00fae89464e7d03f1a7ade6ccdd (diff)
split a validity check into two
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1249 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/sink-input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index 21050d22..b3fabad3 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
@@ -101,7 +101,8 @@ pa_sink_input* pa_sink_input_new(
if (!data->sink)
data->sink = pa_namereg_get(core, NULL, PA_NAMEREG_SINK, 1);
- CHECK_VALIDITY_RETURN_NULL(data->sink && data->sink->state == PA_SINK_RUNNING);
+ CHECK_VALIDITY_RETURN_NULL(data->sink);
+ CHECK_VALIDITY_RETURN_NULL(data->sink->state == PA_SINK_RUNNING);
if (!data->sample_spec_is_set)
data->sample_spec = data->sink->sample_spec;