Skip to content

Make LibVLC disposal idempotent - #441

Open
mfkl wants to merge 1 commit into
videolan:3.xfrom
mfkl:fix-libvlc-dispose-idempotency
Open

Make LibVLC disposal idempotent#441
mfkl wants to merge 1 commit into
videolan:3.xfrom
mfkl:fix-libvlc-dispose-idempotency

Conversation

@mfkl

@mfkl mfkl commented Jul 21, 2026

Copy link
Copy Markdown
Member

No description provided.

@fallenmi fallenmi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed with OpenAI Codex assistance; I independently reproduced the behavior against exact head becf81e3fb4cf7ee8679541f1d69f6508347a97e.

Looks good. In an isolated child process against real LibVLC, exact base exits 139 on the second LibVLC.Dispose(), while exact head exits cleanly and leaves NativeReference == IntPtr.Zero. The submitted regression and a separate equivalent oracle both pass on the head, including five additional isolated runs of each. The existing native-release and dialog-handler cleanup tests also pass, and the exact base/head test projects both build for net10.0.

The three upstream platform build jobs are green. The Azure test job was canceled at its 60-minute limit with only generic cancellation annotations, so it should still be rerun before merge; my approval is based on the exact local reproduction above rather than a green upstream test run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants