Browse Source

MT#61822 fix return values

These functions return a tristate

Change-Id: I0e073ab4d6a4d5af31dffced7e670550c847d8b7
pull/1897/head
Richard Fuchs 11 months ago
parent
commit
0bb7302d5c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/media_player.c

+ 2
- 2
daemon/media_player.c View File

@ -1512,7 +1512,7 @@ static bool media_player_add_blob(struct media_player *mp, media_player_opts_t o
/* make sure to reset db_id before using blob */
opts.db_id = 0;
int ret = __media_player_add_blob_id(mp, opts, NULL);
return ret == 0;
return ret != MPC_ERR;
}
@ -1620,7 +1620,7 @@ static bool media_player_play_db(struct media_player *mp, media_player_opts_t op
// call->master_lock held in W
static bool media_player_add_db(struct media_player *mp, media_player_opts_t opts) {
int ret = __media_player_add_db(mp, opts, NULL);
return ret == 0;
return ret != MPC_ERR;
}


Loading…
Cancel
Save