[vlc-commits] vout: remove useless call
Rémi Denis-Courmont
git at videolan.org
Sun Dec 9 20:45:52 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 9 11:21:51 2018 +0200| [a25c5a44a0d655f2eb09f7cab0ef492d3f3961ba] | committer: Rémi Denis-Courmont
vout: remove useless call
vout_ManageDisplay() returns true if and only if the pictures were
invalid. Both sides of the logical disjunction were equal.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a25c5a44a0d655f2eb09f7cab0ef492d3f3961ba
---
src/video_output/vout_wrapper.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/video_output/vout_wrapper.c b/src/video_output/vout_wrapper.c
index 0c52558dbb..ec0efdc513 100644
--- a/src/video_output/vout_wrapper.c
+++ b/src/video_output/vout_wrapper.c
@@ -184,10 +184,7 @@ void vout_ManageWrapper(vout_thread_t *vout)
vout_thread_sys_t *sys = vout->p;
vout_display_t *vd = sys->display.vd;
- bool reset_display_pool = vout_AreDisplayPicturesInvalid(vd);
- reset_display_pool |= vout_ManageDisplay(vd);
-
- if (reset_display_pool) {
+ if (vout_ManageDisplay(vd)) {
sys->display.use_dr = !vout_IsDisplayFiltered(vd);
NoDrInit(sys);
}
More information about the vlc-commits
mailing list