<html><head></head><body>Ok<br><br><div class="gmail_quote">Le 25 octobre 2019 09:31:50 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">It's only used as an assert telling the module might call it when it's called.<br><br>In the past it was used to allow direct rendering or not from the display pool.<hr> include/vlc_vout_display.h | 1 -<br> modules/video_output/win32/direct3d9.c | 2 --<br> src/video_output/display.c | 1 -<br> 3 files changed, 4 deletions(-)<br><br>diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h<br>index 189260cad99..cf702ad6cf7 100644<br>--- a/include/vlc_vout_display.h<br>+++ b/include/vlc_vout_display.h<br>@@ -105,7 +105,6 @@ typedef struct vout_display_cfg {<br> *<br> */<br> typedef struct {<br>- bool has_pictures_invalid; /* Can handle VOUT_DISPLAY_RESET_PICTURES */<br> bool can_scale_spu; /* Handles subpictures with a non default zoom factor */<br> const vlc_fourcc_t *subpicture_chromas; /* List of supported chromas for subpicture rendering. */<br> } vout_display_info_t;<br>diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c<br>index 6d686b4aa44..b75ac2e323b 100644<br>--- a/modules/video_output/win32/direct3d9.c<br>+++ b/modules/video_output/win32/direct3d9.c<br>@@ -1704,8 +1704,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,<br> }<br> <br> /* Setup vout_display now that everything is fine */<br>- vd->info.has_pictures_invalid = !is_d3d9_opaque(fmt.i_chroma);<br>-<br> if (var_InheritBool(vd, "direct3d9-hw-blending") &&<br> sys->d3dregion_format != D3DFMT_UNKNOWN &&<br> (sys->d3d_dev.caps.SrcBlendCaps & D3DPBLENDCAPS_SRCALPHA) &&<br>diff --git a/src/video_output/display.c b/src/video_output/display.c<br>index bc92d8df723..c174a542793 100644<br>--- a/src/video_output/display.c<br>+++ b/src/video_output/display.c<br>@@ -360,7 +360,6 @@ void vout_display_SendEventPicturesInvalid(vout_display_t *vd)<br> vout_display_priv_t *osys = container_of(vd, vout_display_priv_t, display);<br> <br> msg_Err(vd, "picture buffers invalidated asynchronously");<br>- assert(vd->info.has_pictures_invalid);<br> atomic_store_explicit(&osys->reset_pictures, true, memory_order_release);<br> #else<br> (void) vd;</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>