summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-04 01:19:29 +0200
committerwm4 <wm4@nowhere>2013-04-04 01:19:29 +0200
commit2ade0951ef5b115797d8a4c82db587ac77ecad5e (patch)
tree3ae1e9b8b18174bfc17bd591ac4c8823e7b61519 /core
parent69436967b9bc1f574c209e8c75df36d0936277e4 (diff)
downloadmpv-2ade0951ef5b115797d8a4c82db587ac77ecad5e.tar.bz2
mpv-2ade0951ef5b115797d8a4c82db587ac77ecad5e.tar.xz
command: silence "Audio: no audio" line for playback speed
If no audio stream is selected, this line will be printed by reinit_audio_chain() when changing playback speed.
Diffstat (limited to 'core')
-rw-r--r--core/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/command.c b/core/command.c
index 58079d63f1..66198de166 100644
--- a/core/command.c
+++ b/core/command.c
@@ -146,7 +146,8 @@ static int mp_property_playback_speed(m_option_t *prop, int action,
opts->playback_speed = *(float *) arg;
// Adjust time until next frame flip for nosound mode
mpctx->time_frame *= orig_speed / opts->playback_speed;
- reinit_audio_chain(mpctx);
+ if (mpctx->sh_audio)
+ reinit_audio_chain(mpctx);
return M_PROPERTY_OK;
}
case M_PROPERTY_PRINT: