Skip to content

Commit

Permalink
avplay: enable only when SDL 1.2 is found
Browse files Browse the repository at this point in the history
SDL 2 is API incompatible.

Signed-off-by: Luca Barbato <[email protected]>
  • Loading branch information
kodawah authored and lu-zero committed Mar 9, 2013
1 parent adfa53d commit 2eaa366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions avplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 2 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,6 @@ HAVE_LIST="
rdtsc
sched_getaffinity
sdl
sdl_video_size
SetConsoleTextAttribute
setmode
setrlimit
Expand Down Expand Up @@ -3596,8 +3595,8 @@ fi

if check_pkg_config sdl SDL_events.h SDL_PollEvent; then
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags &&
enable sdl &&
check_struct SDL.h SDL_VideoInfo current_w $sdl_cflags && enable sdl_video_size
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x010300" $sdl_cflags &&
enable sdl
fi

texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html
Expand Down

0 comments on commit 2eaa366

Please sign in to comment.