summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-29 12:10:07 +0100
committerwm4 <wm4@nowhere>2015-01-29 15:15:01 +0100
commit86d4094b98dcfb3e57578c38d842fa7a13aa2605 (patch)
tree58efe55ea2500d4d22747ef7ca28e51a5fb8471f /player/loadfile.c
parent34d3a27f28030a05830a775420cc692a2156bf7d (diff)
downloadmpv-86d4094b98dcfb3e57578c38d842fa7a13aa2605.tar.bz2
mpv-86d4094b98dcfb3e57578c38d842fa7a13aa2605.tar.xz
player: remove redundant variable
mpctx->audio_delay always has the same value as opts->audio_delay. (This was not the case a long time ago, when the audio-delay property didn't actually write to opts->audio_delay. I think.)
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 08077262de..92018135e7 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -950,7 +950,6 @@ static void play_current_file(struct MPContext *mpctx)
mpctx->paused_for_cache = false;
mpctx->playing_msg_shown = false;
mpctx->backstep_active = false;
- mpctx->audio_delay = 0;
mpctx->max_frames = -1;
mpctx->seek = (struct seek_params){ 0 };
@@ -987,7 +986,6 @@ static void play_current_file(struct MPContext *mpctx)
load_per_file_options(mpctx->mconfig, mpctx->playing->params,
mpctx->playing->num_params);
- mpctx->audio_delay = opts->audio_delay;
mpctx->max_frames = opts->play_frames;
MP_INFO(mpctx, "Playing: %s\n", mpctx->filename);