summaryrefslogtreecommitdiffstats
path: root/ext/pulse/pulseprobe.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-09-08 19:34:09 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-09-08 19:34:09 +0200
commitca7bec0d650327afa67fa5ffefe973565b252b3e (patch)
tree57b6439b49d5e7c52262245afd413f3cc8b12a19 /ext/pulse/pulseprobe.c
parentfe2d8bdc64da24ce2a702bf32c1a68e8b32aef58 (diff)
pulse: small cleanups
Add some debug info Fix the state changes
Diffstat (limited to 'ext/pulse/pulseprobe.c')
-rw-r--r--ext/pulse/pulseprobe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pulse/pulseprobe.c b/ext/pulse/pulseprobe.c
index 588a9c39..3c601c2f 100644
--- a/ext/pulse/pulseprobe.c
+++ b/ext/pulse/pulseprobe.c
@@ -103,6 +103,8 @@ gst_pulseprobe_open (GstPulseProbe * c)
g_assert (c);
+ GST_DEBUG_OBJECT (c->object, "probe open");
+
c->mainloop = pa_threaded_mainloop_new ();
g_assert (c->mainloop);
@@ -184,6 +186,8 @@ gst_pulseprobe_enumerate (GstPulseProbe * c)
{
pa_operation *o = NULL;
+ GST_DEBUG_OBJECT (c->object, "probe enumerate");
+
pa_threaded_mainloop_lock (c->mainloop);
if (c->enumerate_sinks) {
@@ -268,6 +272,8 @@ gst_pulseprobe_close (GstPulseProbe * c)
{
g_assert (c);
+ GST_DEBUG_OBJECT (c->object, "probe close");
+
if (c->mainloop)
pa_threaded_mainloop_stop (c->mainloop);