1
Index: pavucontrol-0.9.7/src/pavucontrol.cc
2
===================================================================
3
--- pavucontrol-0.9.7.orig/src/pavucontrol.cc 2009-04-02 00:19:11.000000000 -0400
4
+++ pavucontrol-0.9.7/src/pavucontrol.cc 2009-04-02 00:20:54.000000000 -0400
6
info.channel_map.channels = 1;
7
info.channel_map.map[0] = PA_CHANNEL_POSITION_MONO;
9
- info.device = device.c_str();
10
+ info.device = device == "" ? NULL : device.c_str();
11
info.mute = muteToggleButton->get_active();
15
pa_operation_unref(o);
21
MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
22
@@ -1428,10 +1427,10 @@
24
eventRoleWidget->updating = true;
26
- eventRoleWidget->device = info.device;
27
+ eventRoleWidget->device = info.device ? info.device : "";
30
- volume.values[0] = pa_cvolume_avg(&info.volume);
31
+ volume.values[0] = pa_cvolume_max(&info.volume);
33
eventRoleWidget->setVolume(volume);
34
eventRoleWidget->muteToggleButton->set_active(info.mute);