[vlc-commits] [Git][videolan/vlc][master] direct3d11: fix cached quad not updating the region position
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Tue Oct 22 06:52:49 UTC 2024
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
d87c9689 by Steve Lhomme at 2024-10-22T06:31:55+00:00
direct3d11: fix cached quad not updating the region position
For DVDs the palette may have changed.
- - - - -
1 changed file:
- modules/video_output/win32/direct3d11.cpp
Changes:
=====================================
modules/video_output/win32/direct3d11.cpp
=====================================
@@ -1662,7 +1662,12 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
picture_t *quad_picture = (*region)[i];
d3d11_quad_t *quad;
if (quad_picture != NULL)
+ {
quad = static_cast<d3d11_quad_t*>(quad_picture->p_sys);
+
+ video_format_Clean(&quad->quad_fmt);
+ video_format_Copy(&quad->quad_fmt, &r->p_picture->format);
+ }
else
{
d3d11_quad_t *d3dquad = new (std::nothrow) d3d11_quad_t;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d87c9689fd5deda057abe5b590892d6d41179e9d
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d87c9689fd5deda057abe5b590892d6d41179e9d
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list