Skip to content

libobs-winrt,win-capture: Cursor toggle exceptions#4668

Merged
jp9000 merged 1 commit into
obsproject:masterfrom
jpark37:wgc-cursor-exception
May 8, 2021
Merged

libobs-winrt,win-capture: Cursor toggle exceptions#4668
jp9000 merged 1 commit into
obsproject:masterfrom
jpark37:wgc-cursor-exception

Conversation

@jpark37

@jpark37 jpark37 commented May 8, 2021

Copy link
Copy Markdown
Contributor

Description

A user has reported that toggling the cursor can cause exceptions.

Propagate that information upward, so we can reset the capture.

Display capture never needed to call the function in the first place.

Shuffle around window capture code to make a common reset function.

Builds on PR #4663.

Motivation and Context

Don't want to crash.

How Has This Been Tested?

WGC display capture cursor toggle still works.

WGC window capture cursor toggle still works. Capture reset and recovery tested by modifying function return value in debugger.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

A user has reported that toggling the cursor can cause exceptions.

Propagate that information upward, so we can reset the capture.

Display capture never needed to call the function in the first place.

Shuffle around window capture code to make a common reset function.

Builds on PR obsproject#4663.
@WizardCM WizardCM added the kind/bug Categorizes issue or PR as related to a bug. label May 8, 2021
@jp9000 jp9000 merged commit 366b716 into obsproject:master May 8, 2021
@jpark37 jpark37 deleted the wgc-cursor-exception branch May 8, 2021 07:07
@RytoEX RytoEX added this to the OBS Studio 27.0 milestone May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants