obs-studio/plugins
jp9000 104415d5c3 win-capture: Fix hook bug that could cause crashes
I had this issue where IDXGISwapChain::ResizeBuffers would fail in the
hooks, causing games to crash when they resized their backbuffers
because ResizeBuffers would return an 'invalid call' HRESULT value.  In
the ResizeBuffers documentation it says that it will only happen if a
backbuffer currently has any outstanding references, but there's no way
this would happen unless ResizeBuffers internally calls Present or vise
versa.

After ResizeBuffers has been called, the very first call to Present will
somehow seemingly invalidate and/or destroy the current backbuffer.
It's very strange, but that seems to be what's going on, at least for
the game I was testing.  So if you are performing a post-overlay
capture, then you must ignore the capture on the very first call to
Present.

It's Microsoft's code so you can't really know what's going on, you just
have to work around these strange issues seemingly in the dark.
2015-02-14 09:12:24 -08:00
..
image-source Add latest translations from CrowdIn 2015-02-09 19:26:17 -05:00
linux-capture Add latest translations from CrowdIn 2015-02-09 19:26:17 -05:00
linux-jack Initial obs-studio jack support 2015-01-25 20:42:02 +01:00
linux-pulseaudio Add latest translations from CrowdIn 2015-02-09 19:26:17 -05:00
linux-v4l2 Add latest translations from crowdin 2015-02-11 16:27:24 -05:00
mac-avcapture Add latest translations from crowdin 2015-02-11 16:27:24 -05:00
mac-capture Add latest translations from crowdin 2015-02-11 16:27:24 -05:00
mac-syphon Add latest translations from crowdin 2015-02-11 19:15:08 -05:00
obs-ffmpeg Add latest translations from CrowdIn 2015-02-09 19:26:17 -05:00
obs-libfdk Add latest translations from CrowdIn 2015-02-09 19:26:17 -05:00
obs-outputs librtmp: Try to parse IPv6 addresses 2015-02-11 17:52:56 +01:00
obs-x264 Add latest translations from crowdin 2015-02-11 19:15:08 -05:00
rtmp-services rtmp-services: Add encoder settings callback 2015-02-10 19:27:37 -08:00
text-freetype2 Add latest translations from CrowdIn 2015-02-09 19:26:17 -05:00
win-capture win-capture: Fix hook bug that could cause crashes 2015-02-14 09:12:24 -08:00
win-dshow win-dshow: Rename the avermedia encoders again 2015-02-14 07:48:35 -08:00
win-wasapi Add latest translations from CrowdIn 2015-02-09 19:26:17 -05:00
CMakeLists.txt Initial obs-studio jack support 2015-01-25 20:42:02 +01:00