ffplay: do not init SDL audio if -an is specified.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4a34e54b0e
commit
86824c1dcb
2
ffplay.c
2
ffplay.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user