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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
oldabi n0.8
Clément Bœsch 14 years ago committed by Michael Niedermayer
parent 4a34e54b0e
commit 86824c1dcb
  1. 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

Loading…
Cancel
Save