[polypaudio-commits] r789 - /trunk/src/polyp/context.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sun Apr 23 13:59:43 PDT 2006
Author: lennart
Date: Sun Apr 23 22:59:43 2006
New Revision: 789
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=789&root=polypaudio&view=rev
Log:
small optimization
Modified:
trunk/src/polyp/context.c
Modified: trunk/src/polyp/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/context.c?rev=789&root=polypaudio&r1=788&r2=789&view=diff
==============================================================================
--- trunk/src/polyp/context.c (original)
+++ trunk/src/polyp/context.c Sun Apr 23 22:59:43 2006
@@ -784,18 +784,15 @@
done = 0;
}
- if (!done)
- pa_operation_ref(o);
- else {
+ if (done) {
if (o->callback) {
pa_context_notify_cb_t cb = (pa_context_notify_cb_t) o->callback;
cb(o->context, o->userdata);
}
pa_operation_done(o);
- }
-
- pa_operation_unref(o);
+ pa_operation_unref(o);
+ }
}
pa_operation* pa_context_drain(pa_context *c, pa_context_notify_cb_t cb, void *userdata) {
More information about the pulseaudio-commits
mailing list