From ca7bec0d650327afa67fa5ffefe973565b252b3e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 8 Sep 2009 19:34:09 +0200 Subject: pulse: small cleanups Add some debug info Fix the state changes --- ext/pulse/pulseprobe.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext/pulse/pulseprobe.c') 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); -- cgit