From 2ade0951ef5b115797d8a4c82db587ac77ecad5e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 4 Apr 2013 01:19:29 +0200 Subject: 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. --- core/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/command.c') 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: -- cgit v1.2.3