Rémi Denis-Courmont
2018-12-09 19:45:52 UTC
vlc | branch: master | Rémi Denis-Courmont <***@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.
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);
}
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);
}