aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2011-06-21 11:25:25 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-21 21:41:31 +0200
commit86824c1dcb3eaffc2b143de452e8082dc3c59822 (patch)
tree5d6e277e92580b080c4f30b29f468051c56af1fa
parent4a34e54b0ecf342903d5ed112540fa832b62a514 (diff)
downloadffmpeg-86824c1dcb3eaffc2b143de452e8082dc3c59822.tar.gz
ffplay: do not init SDL audio if -an is specified.n0.8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 81b1fcead4..96a8517b98 100644
--- a/ffplay.c
+++ b/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