~cjcurran/+junk/port-unavailability-bug

« back to all changes in this revision

Viewing changes to soundnua/gvc-mixer-dialog.c

  • Committer: Conor Curran
  • Date: 2012-04-25 19:07:55 UTC
  • Revision ID: conor.curran@canonical.com-20120425190755-392flwy25qcju0dp
remove the g_prints in prep for sru

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
        gboolean       has_monitor;
310
310
 
311
311
        if (stream == NULL) {
312
 
                g_print ("\n create_monitor_stream_for_source - stream is null - returning\n");
 
312
                g_debug ("\n create_monitor_stream_for_source - stream is null - returning\n");
313
313
                return;
314
314
        }
315
315
        has_monitor = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (stream), "has-monitor"));
316
316
        if (has_monitor != FALSE) {
317
 
                g_print ("\n create_monitor_stream_for_source, has monitor is not false - returning \n");
 
317
                g_debug ("\n create_monitor_stream_for_source, has monitor is not false - returning \n");
318
318
                return;
319
319
        }
320
320
 
324
324
        context = gvc_mixer_control_get_pa_context (dialog->priv->mixer_control);
325
325
 
326
326
        if (pa_context_get_server_protocol_version (context) < 13) {
327
 
                g_print ("\n create_monitor_stream_for_source - protocol version is less 13 \n");
 
327
                g_debug ("\n create_monitor_stream_for_source - protocol version is less 13 \n");
328
328
                return;
329
329
        }
330
330
 
378
378
        stream = g_object_get_data (G_OBJECT (dialog->priv->input_level_bar), "stream");
379
379
 
380
380
        if (stream == NULL){
381
 
                g_print ("\n stop_monitor_stream_for_source - gvcstream is null - returning \n");                
 
381
                g_debug ("\n stop_monitor_stream_for_source - gvcstream is null - returning \n");                
382
382
                return;
383
383
        }
384
384
        else{
385
 
                g_print ("\n stop_monitor_stream_for_source - gvcstream is not null - continue \n");                                
 
385
                g_debug ("\n stop_monitor_stream_for_source - gvcstream is not null - continue \n");                                
386
386
        }
387
387
 
388
388
        s = g_object_get_data (G_OBJECT (dialog->priv->input_level_bar), "pa_stream");
390
390
        if (s != NULL){
391
391
                res = pa_stream_disconnect (s);
392
392
                if (res == 0) {
393
 
                        g_print("stream has been disconnected");
 
393
                        g_debug("stream has been disconnected");
394
394
                        pa_stream_unref (s);
395
395
                }
396
396
                g_object_set_data (G_OBJECT (dialog->priv->input_level_bar), "pa_stream", NULL);        
713
713
active_input_update (GvcMixerDialog *dialog,
714
714
                     GvcMixerUIDevice *active_input)
715
715
{         
716
 
        g_print ("\n active_input_update %s \n", gvc_mixer_ui_device_get_description (active_input));
 
716
        g_debug ("\n active_input_update %s \n", gvc_mixer_ui_device_get_description (active_input));
717
717
        // First make sure the correct UI device is selected.
718
718
        GtkTreeModel *model;
719
719
        GtkTreeIter   iter;