Browse Source

MT#62272 media play: centralize opts setting

Centralize opts setting, leave it only for
the `media_player_new()`.

Even though it's allowed them to be empty.

Change-Id: Ia347673f891c6c698909f57bdc7126fa5caf42bf
coverity_scan
Donat Zenichev 9 months ago
parent
commit
50129099ef
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      daemon/media_player.c

+ 0
- 4
daemon/media_player.c View File

@ -1428,8 +1428,6 @@ static mp_cached_code __media_player_add_file(struct media_player *mp,
mp->cache_index.type = MP_FILE;
mp->cache_index.file = call_str_cpy(&opts.file);
__media_player_set_opts(mp, opts);
if (media_player_cache_get_entry(mp, dst_pt, opts.codec_set))
return MPC_CACHED;
@ -1722,8 +1720,6 @@ static mp_cached_code __media_player_add_blob_id(struct media_player *mp,
const char *err;
int av_ret = 0;
__media_player_set_opts(mp, opts);
if (opts.db_id > 0) {
mp->cache_index.type = MP_DB;
mp->cache_index.db_id = opts.db_id;


Loading…
Cancel
Save