Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
Fix problem switching players. Checking wrong pointer for error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ashby committed Jan 31, 2018
1 parent add0c78 commit 07a8cdf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shell/rb-shell-player.c
Original file line number Diff line number Diff line change
Expand Up @@ -3005,15 +3005,16 @@ rb_shell_player_switch_players(RBShellPlayer *player,
// No need to switch
if (player_switch == player->priv->active_player) {
rb_debug ("No need to switch players");
return true;
return TRUE;
}

if (rb_player_close (player->priv->active_player, NULL, error)) {
rb_debug ("Switching players %p", player_switch);
player->priv->active_player = player_switch;
return TRUE;
} else {
return FALSE;
}

return error == NULL;
}

static void
Expand Down

0 comments on commit 07a8cdf

Please sign in to comment.