summaryrefslogtreecommitdiffstats
path: root/player/command.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/command.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/command.c')
-rw-r--r--player/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c
index 397e527ec9..8779ea8c0a 100644
--- a/player/command.c
+++ b/player/command.c
@@ -1583,8 +1583,8 @@ static int mp_property_audio_delay(void *ctx, struct m_property *prop,
*(char **)arg = format_delay(delay);
return M_PROPERTY_OK;
case M_PROPERTY_SET:
- mpctx->audio_delay = mpctx->opts->audio_delay = *(float *)arg;
- mpctx->delay += mpctx->audio_delay - delay;
+ mpctx->opts->audio_delay = *(float *)arg;
+ mpctx->delay += mpctx->opts->audio_delay - delay;
return M_PROPERTY_OK;
}
return mp_property_generic_option(mpctx, prop, action, arg);