~ubuntu-branches/ubuntu/wily/mate-settings-daemon/wily

« back to all changes in this revision

Viewing changes to plugins/mpris/msd-mpris-manager.c

  • Committer: Package Import Robot
  • Author(s): John Paul Adrian Glaubitz, Martin Wimpress, John Paul Adrian Glaubitz
  • Date: 2015-08-16 16:35:32 UTC
  • mfrom: (10.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20150816163532-34zcev57w1c1bbv6
Tags: 1.10.1-1
[ Martin Wimpress ]
* debian/rules:
  + Remove obsolete build options.

[ John Paul Adrian Glaubitz ]
* Fix minor typo in debian/control (missing hyphen).
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
                  MsdMprisManager *manager)
135
135
{
136
136
    gchar *player_name;
 
137
    GList *player_list;
137
138
 
138
139
    if (g_queue_is_empty (manager->priv->media_player_queue))
139
140
        return;
142
143
 
143
144
    player_name = get_player_name(name);
144
145
 
145
 
    g_queue_remove (manager->priv->media_player_queue, player_name);
 
146
    player_list = g_queue_find_custom (manager->priv->media_player_queue,
 
147
                                       player_name, g_strcmp0);
 
148
 
 
149
    if (player_list)
 
150
        g_queue_remove (manager->priv->media_player_queue, player_list->data);
146
151
 
147
152
    g_free (player_name);
148
153
}