This repository was archived by the owner on Aug 5, 2026. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guard drops the first video packet and prevents track initialization forever.
This return runs before
VideoData(), sovideo_tracksnever gets initialized and all packets are skipped indefinitely.Suggested fix
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand what this is doing? VideoData() should
returnif no track is found.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kixelated— Great question, let me clarify the conflict.VideoData()does guard against a missing track — but it also creates the track when it's missing:This means
video_tracksstarts empty and is only populated on the first video packet flowing throughVideoData()→VideoInit().The guard added in this PR fires before that can happen:
The
video_tracks.empty()check can't distinguish between two very different states:video_tracks.empty()trueStop()was called and cleared the maptrueThe PR wants to catch the second case (post-
Stop()stray packets on Windows), but the guard also blocks the first case and breaks normal startup. A dedicated boolean flag (e.g.bool stopped) set inStop()and cleared inStart()would be a cleaner way to distinguish the two situations.