Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] GetMediaInputStatus() fails if the input is not streaming #126

Open
Mat1971 opened this issue Feb 3, 2023 · 0 comments
Open

[BUG] GetMediaInputStatus() fails if the input is not streaming #126

Mat1971 opened this issue Feb 3, 2023 · 0 comments

Comments

@Mat1971
Copy link

Mat1971 commented Feb 3, 2023

Issue Type

  • Bug

Describe the bug
GetMediaInputStatus() fails if the input is not streaming at the time.

To Reproduce
Create an audio capture, don't start the stream it needs, call GetMediaInputStatus()

Expected behavior
Returning null. Instead is throws an exception.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions
OBS Version: 29
OBS WebSocket Version:
OBS WebSocket Dotnet (this library) Version: 5.0.0.3
OS: Windows 10

Additional context [Fix required]
This is caused by MediaInputStatus.cs
line 27: public int Cursor { get; set; }
This should be int? so that it can accept a null cursor position.

I recreated this function in my app, and it failed in the same way as the library. With the above fix, it works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant