Merge pull request #223 from knowledgejunkie/patch-1
playerctl-player.c: Fix a couple of typos
This commit is contained in:
@@ -864,7 +864,7 @@ static gchar *bus_name_for_player_name(gchar *name, GBusType bus_type, GError **
|
|||||||
|
|
||||||
GList *exact_match = pctl_player_name_find(names, name, pctl_bus_type_to_source(bus_type));
|
GList *exact_match = pctl_player_name_find(names, name, pctl_bus_type_to_source(bus_type));
|
||||||
if (exact_match != NULL) {
|
if (exact_match != NULL) {
|
||||||
g_debug("Geting bus name for player %s by exact match", name);
|
g_debug("Getting bus name for player %s by exact match", name);
|
||||||
PlayerctlPlayerName *name = exact_match->data;
|
PlayerctlPlayerName *name = exact_match->data;
|
||||||
bus_name = g_strdup_printf(MPRIS_PREFIX "%s", name->instance);
|
bus_name = g_strdup_printf(MPRIS_PREFIX "%s", name->instance);
|
||||||
g_list_free_full(names, (GDestroyNotify)playerctl_player_name_free);
|
g_list_free_full(names, (GDestroyNotify)playerctl_player_name_free);
|
||||||
@@ -874,7 +874,7 @@ static gchar *bus_name_for_player_name(gchar *name, GBusType bus_type, GError **
|
|||||||
GList *instance_match =
|
GList *instance_match =
|
||||||
pctl_player_name_find_instance(names, name, pctl_bus_type_to_source(bus_type));
|
pctl_player_name_find_instance(names, name, pctl_bus_type_to_source(bus_type));
|
||||||
if (instance_match != NULL) {
|
if (instance_match != NULL) {
|
||||||
g_debug("Geting bus name for player %s by instance match", name);
|
g_debug("Getting bus name for player %s by instance match", name);
|
||||||
gchar *name = instance_match->data;
|
gchar *name = instance_match->data;
|
||||||
bus_name = g_strdup_printf(MPRIS_PREFIX "%s", name);
|
bus_name = g_strdup_printf(MPRIS_PREFIX "%s", name);
|
||||||
pctl_player_name_list_destroy(names);
|
pctl_player_name_list_destroy(names);
|
||||||
|
Reference in New Issue
Block a user