[gst-cvs] gst-plugins-good: pulsesink: rework context sharing
ensonic at kemper.freedesktop.org
Mon Sep 13 07:00:14 PDT 2010
Author: Stefan Kost <ensonic at users.sf.net>
Date: Mon Sep 13 16:24:26 2010 +0300
pulsesink: rework context sharing
We also need to share the main-loop threads as this owns the context. Thus have
a class wide main-loop thread. From this we create a context per client-name.
Instead of always looking up the context, we keep this with the instance. The
reverse mapping is only needed in pulse singal handlers. This saves a lot of
locking. Also one signal handler becomes simpler as ther eis only one mainloop
Now valgind happy - no leaks, no bad reads/writes.
This reverts major parts of commit 69a397c32f4baf07a7b2937c610f9e8f383e9ae9.
ext/pulse/pulsesink.c | 262 +++++++++++++++++++++++--------------------------
ext/pulse/pulsesink.h | 6 +
2 files changed, 127 insertions(+), 141 deletions(-)
More information about the Gstreamer-commits