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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Clément Bœsch 2011-06-21 11:25:25 +02:00 committed by Michael Niedermayer
parent 4a34e54b0e
commit 86824c1dcb

View File

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