[pulseaudio-commits] r1249 - /trunk/src/pulsecore/sink-input.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sun Aug 13 12:53:35 PDT 2006
Author: lennart
Date: Sun Aug 13 21:53:35 2006
New Revision: 1249
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1249&root=pulseaudio&view=rev
Log:
split a validity check into two
Modified:
trunk/src/pulsecore/sink-input.c
Modified: trunk/src/pulsecore/sink-input.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/sink-input.c?rev=1249&root=pulseaudio&r1=1248&r2=1249&view=diff
==============================================================================
--- trunk/src/pulsecore/sink-input.c (original)
+++ trunk/src/pulsecore/sink-input.c Sun Aug 13 21:53:35 2006
@@ -101,7 +101,8 @@
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;
More information about the pulseaudio-commits
mailing list