aboutsummaryrefslogtreecommitdiff
path: root/src/pulse-manager.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-10-07 06:08:19 -0400
committerBazaar Package Importer <james.westby@ubuntu.com>2010-10-07 06:08:19 -0400
commit3954f25cb99c9e6042d0f036fda0f2636d76ef93 (patch)
tree9231dd0bf3208d66db8ea3092d2bb7384efd5d12 /src/pulse-manager.c
parent4b79b2105c0c547667b3be12cbd65b84c1cab19d (diff)
parent4d97b660ec5a21fb3fa48bdca75dbf77f9288b87 (diff)
downloadayatana-indicator-sound-3954f25cb99c9e6042d0f036fda0f2636d76ef93.tar.gz
ayatana-indicator-sound-3954f25cb99c9e6042d0f036fda0f2636d76ef93.tar.bz2
ayatana-indicator-sound-3954f25cb99c9e6042d0f036fda0f2636d76ef93.zip
* New upstream release.
- indicator-sound-service eating CPU on second user login (LP: #581173) - Right border of transport control is different colour while using Ambiance (LP: #632774) - Incorrect ellipsing (LP: #637580) - always show unmuted at startup (LP: #648238) - click or enter on metadata widget does not copy contents to clipboard (LP: #651246) - Sound menu has two Rhythmbox elements when using translations (LP: #654140)
Diffstat (limited to 'src/pulse-manager.c')
-rw-r--r--src/pulse-manager.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/pulse-manager.c b/src/pulse-manager.c
index f93368e..8779525 100644
--- a/src/pulse-manager.c
+++ b/src/pulse-manager.c
@@ -43,7 +43,6 @@ static void pulse_server_info_callback(pa_context *c, const pa_server_info *info
static void update_sink_info(pa_context *c, const pa_sink_info *info, int eol, void *userdata);
static void destroy_sink_info(void *value);
static gboolean determine_sink_availability();
-static void reconnect_to_pulse();
static gboolean has_volume_changed(const pa_sink_info* new_sink, sink_info* cached_sink);
static pa_cvolume construct_mono_volume(const pa_cvolume* vol);
@@ -100,35 +99,6 @@ void close_pulse_activites()
}
/**
-reconnect_to_pulse()
-In the event of Pulseaudio flapping in the wind handle gracefully without
-memory leaks !
-*/
-static void reconnect_to_pulse()
-{
- // reset
- if (pulse_context != NULL) {
- g_debug("freeing the pulse context");
- pa_context_unref(pulse_context);
- pulse_context = NULL;
- }
-
- if (sink_hash != NULL) {
- g_hash_table_destroy(sink_hash);
- sink_hash = NULL;
- }
-
- // reconnect
- pulse_context = pa_context_new(pa_glib_mainloop_get_api(pa_main_loop), "ayatana.indicator.sound");
- g_assert(pulse_context);
- sink_hash = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, destroy_sink_info);
- // Establish event callback registration
- pa_context_set_state_callback(pulse_context, context_state_callback, NULL);
- dbus_menu_manager_update_pa_state(FALSE, FALSE, FALSE, 0);
- pa_context_connect(pulse_context, NULL, PA_CONTEXT_NOFAIL, NULL);
-}
-
-/**
destroy_sink_info()
item destructor method for the sink_info hash
**/
@@ -534,7 +504,6 @@ static void context_state_callback(pa_context *c, void *userdata)
case PA_CONTEXT_FAILED:
g_warning("FAILED to retrieve context - Is PulseAudio Daemon running ?");
pa_server_available = FALSE;
- reconnect_to_pulse();
break;
case PA_CONTEXT_TERMINATED:
/* g_debug("context terminated");*/