Skip to content

fix: contain decoder-thread exceptions and report rejected media output - #565

Merged
devopvoid merged 2 commits into
mainfrom
fix/media-player-output-failures
Nov 7, 2026
Merged

devopvoid merged 2 commits into
mainfrom
fix/media-player-output-failures

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

An allocation failure escaping the player's decoder thread could terminate the JVM. Guard the thread entry point, own packets and pending video frames through RAII, and stop playback through an allocation-free failure path that releases blocked producers and reports the error on the event thread.

Check video and audio delivery results before advancing playback position. Report dropped items at most once per second per media kind, reset consecutive failure counts after successful deliveries, and stop playback after ten consecutive failures of either kind. Document the terminal PAUSED state, update the examples to allow playback to continue after isolated drops, and add fault-injection regressions for decoder exceptions, rejected output, position tracking and allocation failures during error reporting.

@devopvoid devopvoid changed the title Contain decoder-thread exceptions and report rejected media output fix: contain decoder-thread exceptions and report rejected media output Nov 7, 2026
@devopvoid
devopvoid force-pushed the fix/media-player-output-failures branch from 820623e to 0734f90 Compare November 7, 2026 18:10
@devopvoid
devopvoid force-pushed the fix/media-player-output-failures branch from 4da2e77 to 2fa8718 Compare November 7, 2026 22:11
@devopvoid
devopvoid merged commit a6e9ced into main Nov 7, 2026
26 checks passed
@devopvoid
devopvoid deleted the fix/media-player-output-failures branch November 7, 2026 23:07
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

Successfully merging this pull request may close these issues.

1 participant