Skip to content
Browse files

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information...
1 parent 4a34e54 commit 86824c1dcb3eaffc2b143de452e8082dc3c59822 @ubitux ubitux committed with michaelni Jun 21, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 ffplay.c
View
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

0 comments on commit 86824c1

Please sign in to comment.
Something went wrong with that request. Please try again.