obs-studio/plugins/win-capture
jp9000 bef1b37ae2 win-capture: Fix case where hook only captures one frame
When using a chain hook method (forward or reverse), it was unwisely
assumed that the previous hook in the chain would not overwrite new
hooks when it's called.  When the game capture hook calls the previous
hook in the chain, certain other programs that hook (in this case,
rivatuner on-screen display) would overwrite the hook with older data
and erase the game capture hook, causing it to only capture the first
frame and then never capture again.

This patch ensures that the hook is always saved before calling the next
hook in the chain and then restored after the call returns.  It also
preserves any new hooks that may be added on top of it at any point.
2016-04-14 23:45:19 -07:00
..
d3d8-api Use _MSC_VER for MSVC-specific pragmas 2015-02-09 03:49:18 -08:00
data/locale Update translations from Crowdin 2016-03-19 12:08:48 -07:00
get-graphics-offsets win-capture: Hook Reset/ResetEx in Present* funcs 2015-11-20 14:06:37 -08:00
graphics-hook win-capture: Add game capture fix for darkest dungeon 2016-01-26 11:49:28 -08:00
inject-helper win-capture: Fix mingw compiler warnings 2015-07-11 14:26:51 -07:00
CMakeLists.txt win-capture: Add direct hooking and use by default 2015-07-05 15:17:07 -07:00
cursor-capture.c Make capture sources w/o alpha use opaque effect 2015-03-22 19:18:05 -07:00
cursor-capture.h win-capture: Don't draw cursor if outside area 2015-01-03 02:37:18 -08:00
dc-capture.c (API Change) libobs: Use single func for base effects 2015-10-19 00:52:45 -07:00
dc-capture.h (API Change) libobs: Use single func for base effects 2015-10-19 00:52:45 -07:00
duplicator-monitor-capture.c libobs: Add source output flag OBS_SOURCE_DO_NOT_DUPLICATE 2016-01-26 11:49:50 -08:00
funchook.c win-capture: Fix case where hook only captures one frame 2016-04-14 23:45:19 -07:00
funchook.h win-capture: Add 64bit bounce to func_hook 2015-07-03 12:17:25 -07:00
game-capture.c win-capture: Fix game capture file integrity test 2016-03-24 01:05:47 -07:00
graphics-hook-info.h win-capture: Hook Reset/ResetEx in Present* funcs 2015-11-20 14:06:37 -08:00
hook-helpers.h Fix windows printf format warnings (from mingw) 2015-02-09 03:49:14 -08:00
inject-library.c win-capture: Use MEM_RESERVE to comply with VirtualAllocEx spec 2015-11-06 18:16:29 +01:00
inject-library.h win-capture: Add inject library files 2015-07-05 15:17:06 -07:00
load-graphics-offsets.c win-capture: Hook Reset/ResetEx in Present* funcs 2015-11-20 14:06:37 -08:00
monitor-capture.c libobs: Add source output flag OBS_SOURCE_DO_NOT_DUPLICATE 2016-01-26 11:49:50 -08:00
obfuscate.c Use _MSC_VER for MSVC-specific pragmas 2015-02-09 03:49:18 -08:00
obfuscate.h win-capture: Add obfuscation functions 2014-12-08 01:53:51 -08:00
plugin-main.c win-capture: Actually always refetch capture addresses 2016-03-21 13:54:50 -07:00
window-capture.c (API Change) libobs: Use single func for base effects 2015-10-19 00:52:45 -07:00
window-helpers.c win-capture: Check return values on Windows API functions 2015-10-12 23:21:45 +02:00
window-helpers.h win-capture: Expose get_window_exe as extern 2014-12-08 01:53:53 -08:00