commit db4d6bb144ed1334573987b88c744c0d55129f04
Author: Robert Greener <robert@agreener.uk>
Date:   Sat Aug 26 22:55:51 2017 +0100

    gnomemusic/player.py: Set pulseaudio icon name for gnome-control-center
    
    Currently the icon that gets used in the gnome-control-center is the
    applications-media icon from Gtk, obviously this should display the icon
    for gnome-music.
    
    It is not displayed as gnome-control-center gets the icon name from the
    pulseaudio properties.
    
    To fix this, use pulsesink instead of autoaudiosink by default, and set
    the property
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709073

diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index eabb283..9fc954b 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -181,7 +181,9 @@ class Player(GObject.GObject):
         self._rg_audioconvert2 = Gst.ElementFactory.make("audioconvert", "audioconvert2")
         self._rgvolume = Gst.ElementFactory.make("rgvolume", "rgvolume")
         self._rglimiter = Gst.ElementFactory.make("rglimiter", "rglimiter")
-        self._rg_audiosink = Gst.ElementFactory.make("autoaudiosink", "autoaudiosink")
+        self._rg_audiosink = Gst.ElementFactory.make("pulsesink", "pulsesink")
+        props = Gst.structure_from_string("props,window.icon_name=gnome-music")
+        self._rg_audiosink.set_property('stream-properties', props[0])
         if not self._rgfilter or not self._rg_audioconvert1 or not self._rg_audioconvert2 \
            or not self._rgvolume or not self._rglimiter or not self._rg_audiosink:
             logger.debug("Replay Gain is not available")
