mirror of https://github.com/mpv-player/mpv
player: remove unused mutate argument in mp_next_file
e277fadd60
originally added this but it
never actually did anything in the function... wm4 probably changed his
mind but forget to delete it so just remove it here.
This commit is contained in:
parent
034f75dacd
commit
817c6f9cb7
|
@ -5310,7 +5310,7 @@ static void cmd_playlist_next_prev(void *p)
|
|||
int dir = *(int *)cmd->priv;
|
||||
int force = cmd->args[0].v.i;
|
||||
|
||||
struct playlist_entry *e = mp_next_file(mpctx, dir, force, true);
|
||||
struct playlist_entry *e = mp_next_file(mpctx, dir, force);
|
||||
if (!e && !force) {
|
||||
cmd->success = false;
|
||||
return;
|
||||
|
|
|
@ -523,7 +523,7 @@ struct track *mp_track_by_tid(struct MPContext *mpctx, enum stream_type type,
|
|||
void add_demuxer_tracks(struct MPContext *mpctx, struct demuxer *demuxer);
|
||||
bool mp_remove_track(struct MPContext *mpctx, struct track *track);
|
||||
struct playlist_entry *mp_next_file(struct MPContext *mpctx, int direction,
|
||||
bool force, bool mutate);
|
||||
bool force);
|
||||
void mp_set_playlist_entry(struct MPContext *mpctx, struct playlist_entry *e);
|
||||
void mp_play_files(struct MPContext *mpctx);
|
||||
void update_demuxer_properties(struct MPContext *mpctx);
|
||||
|
|
|
@ -1298,7 +1298,7 @@ void prefetch_next(struct MPContext *mpctx)
|
|||
if (!mpctx->opts->prefetch_open)
|
||||
return;
|
||||
|
||||
struct playlist_entry *new_entry = mp_next_file(mpctx, +1, false, false);
|
||||
struct playlist_entry *new_entry = mp_next_file(mpctx, +1, false);
|
||||
if (new_entry && !mpctx->open_active && new_entry->filename) {
|
||||
MP_VERBOSE(mpctx, "Prefetching: %s\n", new_entry->filename);
|
||||
start_open(mpctx, new_entry->filename, new_entry->stream_flags, true);
|
||||
|
@ -1941,7 +1941,7 @@ terminate_playback:
|
|||
process_hooks(mpctx, "on_after_end_file");
|
||||
|
||||
if (playlist_prev_continue) {
|
||||
struct playlist_entry *e = mp_next_file(mpctx, -1, false, true);
|
||||
struct playlist_entry *e = mp_next_file(mpctx, -1, false);
|
||||
if (e) {
|
||||
mp_set_playlist_entry(mpctx, e);
|
||||
play_current_file(mpctx);
|
||||
|
@ -1953,9 +1953,8 @@ terminate_playback:
|
|||
// it can have side-effects and mutate mpctx.
|
||||
// direction: -1 (previous) or +1 (next)
|
||||
// force: if true, don't skip playlist entries marked as failed
|
||||
// mutate: if true, change loop counters
|
||||
struct playlist_entry *mp_next_file(struct MPContext *mpctx, int direction,
|
||||
bool force, bool mutate)
|
||||
bool force)
|
||||
{
|
||||
struct playlist_entry *next = playlist_get_next(mpctx->playlist, direction);
|
||||
if (next && direction < 0 && !force) {
|
||||
|
@ -2027,7 +2026,7 @@ void mp_play_files(struct MPContext *mpctx)
|
|||
if (mpctx->stop_play == PT_NEXT_ENTRY || mpctx->stop_play == PT_ERROR ||
|
||||
mpctx->stop_play == AT_END_OF_FILE)
|
||||
{
|
||||
new_entry = mp_next_file(mpctx, +1, false, true);
|
||||
new_entry = mp_next_file(mpctx, +1, false);
|
||||
} else if (mpctx->stop_play == PT_CURRENT_ENTRY) {
|
||||
new_entry = mpctx->playlist->current;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue