summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2013-03-06 17:15:50 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-03-09 14:33:54 +0100
commit2eaa3663fda750dac66d41fe8541a8744d5563a4 (patch)
tree0fd49b1aaf4d21ad0ffdd6b5df2e4c0c5c4e0a5f /avplay.c
parentadfa53d67c7a3318157ea9d95e8bdcfb77139452 (diff)
avplay: enable only when SDL 1.2 is found
SDL 2 is API incompatible. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/avplay.c b/avplay.c
index b87e270e74..754a69fe6a 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2967,11 +2967,9 @@ int main(int argc, char **argv)
}
if (!display_disable) {
-#if HAVE_SDL_VIDEO_SIZE
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
fs_screen_width = vi->current_w;
fs_screen_height = vi->current_h;
-#endif
}
SDL_EventState(SDL_ACTIVEEVENT, SDL_IGNORE);