summaryrefslogtreecommitdiffstats
path: root/ext/pulse/pulsemixerctrl.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/pulsemixerctrl.c
parentfe2d8bdc64da24ce2a702bf32c1a68e8b32aef58 (diff)
pulse: small cleanups
Add some debug info Fix the state changes
Diffstat (limited to 'ext/pulse/pulsemixerctrl.c')
-rw-r--r--ext/pulse/pulsemixerctrl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pulse/pulsemixerctrl.c b/ext/pulse/pulsemixerctrl.c
index ae807c66..f0bc6463 100644
--- a/ext/pulse/pulsemixerctrl.c
+++ b/ext/pulse/pulsemixerctrl.c
@@ -213,6 +213,8 @@ gst_pulsemixer_ctrl_open (GstPulseMixerCtrl * c)
g_assert (c);
+ GST_DEBUG_OBJECT (c->object, "ctrl open");
+
c->mainloop = pa_threaded_mainloop_new ();
g_assert (c->mainloop);
@@ -275,6 +277,7 @@ gst_pulsemixer_ctrl_open (GstPulseMixerCtrl * c)
/* Get sink info */
if (c->type == GST_PULSEMIXER_UNKNOWN || c->type == GST_PULSEMIXER_SINK) {
+ GST_WARNING_OBJECT (c->object, "Get info for '%s'", c->device);
if (!(o =
pa_context_get_sink_info_by_name (c->context, c->device,
gst_pulsemixer_ctrl_sink_info_cb, c))) {
@@ -353,6 +356,8 @@ gst_pulsemixer_ctrl_close (GstPulseMixerCtrl * c)
{
g_assert (c);
+ GST_DEBUG_OBJECT (c->object, "ctrl close");
+
if (c->mainloop)
pa_threaded_mainloop_stop (c->mainloop);
@@ -386,6 +391,7 @@ gst_pulsemixer_ctrl_new (GObject * object, const gchar * server,
{
GstPulseMixerCtrl *c = NULL;
+ GST_DEBUG_OBJECT (object, "new mixer ctrl for %s", device);
c = g_new (GstPulseMixerCtrl, 1);
c->object = g_object_ref (object);
c->tracklist = NULL;