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.
This commit is contained in:
wm4 2013-04-04 01:19:29 +02:00
parent 69436967b9
commit 2ade0951ef
1 changed files with 2 additions and 1 deletions

View File

@ -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: