Discussion:
[vlc-commits] display: remove dead code
Rémi Denis-Courmont
2018-12-09 19:45:41 UTC
Permalink
vlc | branch: master | Rémi Denis-Courmont <***@remlab.net> | Sat Dec 8 19:09:09 2018 +0200| [b466e713eee809d08f2301cff6967400812123fa] | committer: Rémi Denis-Courmont

display: remove dead code

As per the initializations 20 lines earlier, the predicate was always
false.
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b466e713eee809d08f2301cff6967400812123fa
---

src/video_output/display.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 7ea553a73a..e4c603df7e 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -988,11 +988,6 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
goto error;
}

- /* Setup delayed request */
- if (osys->sar.num != source->i_sar_num ||
- osys->sar.den != source->i_sar_den)
- osys->ch_sar = true;
-
var_SetBool(osys->vout, "viewpoint-changeable",
p_display->fmt.projection_mode != PROJECTION_MODE_RECTANGULAR);

Loading...