Skip to content

Commit 86824c1

Browse files
ubituxmichaelni
authored andcommitted
ffplay: do not init SDL audio if -an is specified.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
1 parent 4a34e54 commit 86824c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ffplay.c

+2
Original file line numberDiff line numberDiff line change
@@ -3032,6 +3032,8 @@ int main(int argc, char **argv)
30323032
video_disable = 1;
30333033
}
30343034
flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER;
3035+
if (audio_disable)
3036+
flags &= ~SDL_INIT_AUDIO;
30353037
#if !defined(__MINGW32__) && !defined(__APPLE__)
30363038
flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */
30373039
#endif

0 commit comments

Comments
 (0)