aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
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 /ffplay.c
parent4a34e54b0ecf342903d5ed112540fa832b62a514 (diff)
downloadffmpeg-345ec4ea60ada2ced1119e15103eefa0a1e5af94.tar.gz
ffplay: do not init SDL audio if -an is specified.n0.8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-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