diff options
author | Ted Gould <ted@gould.cx> | 2014-02-12 16:49:31 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-02-12 16:49:31 -0600 |
commit | 537e5b2988815287e6bb3da35189e5c65c5ac4b2 (patch) | |
tree | 14d4b7ef67abcc31fbb69d5e8bc3e3afb1b70749 /src/main.c | |
parent | 2d9d89bb932174f6b54e6ba6586deafe511a685b (diff) | |
download | ayatana-indicator-sound-537e5b2988815287e6bb3da35189e5c65c5ac4b2.tar.gz ayatana-indicator-sound-537e5b2988815287e6bb3da35189e5c65c5ac4b2.tar.bz2 ayatana-indicator-sound-537e5b2988815287e6bb3da35189e5c65c5ac4b2.zip |
Move the player list outside of the service creation
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -21,9 +21,12 @@ main (int argc, char ** argv) { /* Initialize libnotify */ notify_init ("indicator-sound"); + MediaPlayerList * playerlist = MEDIA_PLAYER_LIST(media_player_list_mpris_new()); - service = indicator_sound_service_new (); + service = indicator_sound_service_new (playerlist); result = indicator_sound_service_run (service); + + g_object_unref(playerlist); g_object_unref(service); return result; |