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

libobs: Do not allow reconnect if stop code is OBS_OUTPUT_INVALID_STREAM #11304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dsaedtler
Copy link

Description

Stop attempting to reconnect if stop code was OBS_OUTPUT_INVALID_STREAM.

Motivation and Context

If the stream key becomes invalid after a successful stream start and OBS gets disconnected it will get stuck in an indefinite loop trying to reconnect.

This issue has come up in relation to enhanced broadcasting on Twitch, which uses a signed stream key with a limited lifetime. For people running 24/7 streams OBS would get disconnected after the 48 hour limit, and subsequently attempt to (unsuccessfully) reconnect ad infinitum.

There probably is no scenario where a stream key is only temporarily rejected, so it should be fine to always give up on reconnecting once it expires. There will be some follow-up later (next week or so) to allow EB multitrack outputs to reconnect, which would require going through the entire flow as encoder settings may change when a new request is made, and simply fetching a new stream key is not possible.

How Has This Been Tested?

Locally.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)

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.

@WizardCM WizardCM added the Enhancement Improvement to existing functionality label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants