Skip to content

f_auto_filters: destroy deint filter immediately on format change#18099

Open
llyyr wants to merge 1 commit into
mpv-player:masterfrom
llyyr:fix-deint-filter-change
Open

f_auto_filters: destroy deint filter immediately on format change#18099
llyyr wants to merge 1 commit into
mpv-player:masterfrom
llyyr:fix-deint-filter-change

Conversation

@llyyr

@llyyr llyyr commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

When the image format changes (e.g. switching hwdec), immediately destroy the existing deinterlace filter instead of draining it. Draining feeds new frames through the old filter, which can cause issues. (e.g. bwdif_vulkan receiving vaapi frames).

This fixes userdeint filter failure when switching from hwdec=vulkan to hwdec=vaapi while the filter is applied via --deinterlace=auto/yes

When the image format changes (e.g. switching hwdec), immediately
destroy the existing deinterlace filter instead of draining it. Draining
feeds new frames through the old filter, which can cause issues. (e.g.
bwdif_vulkan receiving vaapi frames).

This fixes userdeint filter failure when switching from hwdec=vulkan to
hwdec=vaapi while the filter is applied via --deinterlace=auto/yes
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