Commit 86824c1d authored by Clément Bœsch's avatar Clément Bœsch Committed by Michael Niedermayer

ffplay: do not init SDL audio if -an is specified.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4a34e54b
......@@ -3032,6 +3032,8 @@ int main(int argc, char **argv)
video_disable = 1;
}
flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER;
if (audio_disable)
flags &= ~SDL_INIT_AUDIO;
#if !defined(__MINGW32__) && !defined(__APPLE__)
flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment