summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-06-14 11:09:57 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-06-14 11:09:57 +0000
commit31319a8ccddca74b178a411232865d78c5f4e985 (patch)
treebd8f29efb70ed257251362cbe3eb85c881bf0349 /ffplay.c
parent11e659c203d534c3f6033003be5c2727e2291796 (diff)
win32 compile fix for ffplay by gbazin at altern dot org
Originally committed as revision 1958 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index b2b4d18bed..1bc8192db0 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -25,6 +25,10 @@
#include <SDL.h>
#include <SDL_thread.h>
+#ifdef CONFIG_WIN32
+#undef main /* We don't want SDL to override our main() */
+#endif
+
#if defined(__linux__)
#define HAVE_X11
#endif
@@ -1359,7 +1363,10 @@ int main(int argc, char **argv)
if (display_disable) {
video_disable = 1;
}
- flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_EVENTTHREAD;
+ flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER;
+#ifndef CONFIG_WIN32
+ flags |= SDL_INIT_EVENTTHREAD; /* Not supported on win32 */
+#endif
if (SDL_Init (flags)) {
fprintf(stderr, "Could not initialize SDL - exiting\n");
exit(1);