Skip to content

Recover from stranded flushnig on end of stream too - #1315

Merged
milos-lk merged 1 commit into
mainfrom
flush-recovery-on-eos
Jul 29, 2026
Merged

Recover from stranded flushnig on end of stream too#1315
milos-lk merged 1 commit into
mainfrom
flush-recovery-on-eos

Conversation

@milos-lk

Copy link
Copy Markdown
Contributor

The previous change added recovery from stranded flushing on packet push - so that track can start ingesting packets into pipeline correctly. There is one more case that will benefit from the recovery - sending the end of stream signal - if packets started flushing but the recovery wasn't yet performed (didn't reach the threshold) and the track/recording ends - a writer will try to send EOS and that call will get the same flow flushing error, so EOS never propagates and we get the same pipeline frozen error. The change here introduces the recovery path for that use case as well. This is the only appsrc related cause of pipeline frozen errors remaining that I can see in logs.

The previous change added recovery from stranded flushing on packet push - so that track can start ingesting packets into pipeline correctly.
There is one more case that will benefit from recovery - sending end of stream signal - if packets started flushing but recovery wasn't yet performed (didn't reach the threshold) and track/recording ends - writer will try to send EOS and that call will get the same flow flushing error, so EOS never propagets and we get the same pipeline frozen error.
The change here introduces the recovery path for that use case as well. This is the only appsrc related cause of pipeline forzen errors remaining that I can see in logs.
@github-actions

Copy link
Copy Markdown
Contributor

AV-sync stats summary: view in run #30444401634

@milos-lk
milos-lk merged commit 6b4bf99 into main Jul 29, 2026
26 of 27 checks passed
@milos-lk
milos-lk deleted the flush-recovery-on-eos branch July 29, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants