[vlc-commits] interlacing: make the timeout to detect switch to non interlaced CLOCK_FREQ based

Steve Lhomme git at videolan.org
Sat May 5 18:10:38 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May  5 10:24:48 2018 +0200| [df08c744f3ff912c75c888cc0b5954ef09c0c566] | committer: Rémi Denis-Courmont

interlacing: make the timeout to detect switch to non interlaced CLOCK_FREQ based

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df08c744f3ff912c75c888cc0b5954ef09c0c566
---

 src/video_output/interlacing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/interlacing.c b/src/video_output/interlacing.c
index f07ef8ef5a..910de44ba3 100644
--- a/src/video_output/interlacing.c
+++ b/src/video_output/interlacing.c
@@ -182,7 +182,7 @@ void vout_SetInterlacingState(vout_thread_t *vout, bool is_interlaced)
                                  - (!!vout->p->interlacing.is_interlaced);
     if (interlacing_change == 1 ||
         (interlacing_change == -1 &&
-        vout->p->interlacing.date + 30000000 < mdate()))
+        vout->p->interlacing.date + CLOCK_FREQ*30 < mdate()))
     {
         msg_Dbg(vout, "Detected %s video",
                  is_interlaced ? "interlaced" : "progressive");



More information about the vlc-commits mailing list