Merge commit '2eaa3663fda750dac66d41fe8541a8744d5563a4'
* commit '2eaa3663fda750dac66d41fe8541a8744d5563a4': avplay: enable only when SDL 1.2 is found Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b94df21a51
9
configure
vendored
9
configure
vendored
@ -1460,7 +1460,6 @@ HAVE_LIST="
|
|||||||
rsync_contimeout
|
rsync_contimeout
|
||||||
sched_getaffinity
|
sched_getaffinity
|
||||||
sdl
|
sdl
|
||||||
sdl_video_size
|
|
||||||
SetConsoleTextAttribute
|
SetConsoleTextAttribute
|
||||||
setmode
|
setmode
|
||||||
setrlimit
|
setrlimit
|
||||||
@ -4001,16 +4000,16 @@ fi
|
|||||||
SDL_CONFIG="${cross_prefix}sdl-config"
|
SDL_CONFIG="${cross_prefix}sdl-config"
|
||||||
if check_pkg_config sdl SDL_events.h SDL_PollEvent; then
|
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 &&
|
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags &&
|
||||||
enable sdl &&
|
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x010300" $sdl_cflags &&
|
||||||
check_struct SDL.h SDL_VideoInfo current_w $sdl_cflags && enable sdl_video_size
|
enable sdl
|
||||||
else
|
else
|
||||||
if "${SDL_CONFIG}" --version > /dev/null 2>&1; then
|
if "${SDL_CONFIG}" --version > /dev/null 2>&1; then
|
||||||
sdl_cflags=$("${SDL_CONFIG}" --cflags)
|
sdl_cflags=$("${SDL_CONFIG}" --cflags)
|
||||||
sdl_libs=$("${SDL_CONFIG}" --libs)
|
sdl_libs=$("${SDL_CONFIG}" --libs)
|
||||||
check_func_headers SDL_version.h SDL_Linked_Version $sdl_cflags $sdl_libs &&
|
check_func_headers SDL_version.h SDL_Linked_Version $sdl_cflags $sdl_libs &&
|
||||||
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags &&
|
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags &&
|
||||||
enable sdl &&
|
check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x010300" $sdl_cflags &&
|
||||||
check_struct SDL.h SDL_VideoInfo current_w $sdl_cflags && enable sdl_video_size
|
enable sdl
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
enabled sdl && add_cflags $sdl_cflags && add_extralibs $sdl_libs
|
enabled sdl && add_cflags $sdl_cflags && add_extralibs $sdl_libs
|
||||||
|
2
ffplay.c
2
ffplay.c
@ -3351,11 +3351,9 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!display_disable) {
|
if (!display_disable) {
|
||||||
#if HAVE_SDL_VIDEO_SIZE
|
|
||||||
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
|
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
|
||||||
fs_screen_width = vi->current_w;
|
fs_screen_width = vi->current_w;
|
||||||
fs_screen_height = vi->current_h;
|
fs_screen_height = vi->current_h;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_EventState(SDL_ACTIVEEVENT, SDL_IGNORE);
|
SDL_EventState(SDL_ACTIVEEVENT, SDL_IGNORE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user