ffplay: do not init SDL audio if -an is specified.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
4a34e54b0e
commit
345ec4ea60
2
ffplay.c
2
ffplay.c
@@ -3032,6 +3032,8 @@ int main(int argc, char **argv)
|
|||||||
video_disable = 1;
|
video_disable = 1;
|
||||||
}
|
}
|
||||||
flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER;
|
flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER;
|
||||||
|
if (audio_disable)
|
||||||
|
flags &= ~SDL_INIT_AUDIO;
|
||||||
#if !defined(__MINGW32__) && !defined(__APPLE__)
|
#if !defined(__MINGW32__) && !defined(__APPLE__)
|
||||||
flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */
|
flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user