From 77cbb4ba34aa4ede333a4d631c692b4cb8953235 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20=C3=96man?= Date: Tue, 10 May 2011 20:07:05 +0200 Subject: [PATCH] webui: Enable YADIF in VLC if VLC version >1.1 --- src/webui/static/app/tvheadend.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index 25d9be986..5835b3f10 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -199,6 +199,14 @@ tvheadend.VLC = function(url) { vlc.playlist.items.clear(); vlc.playlist.add(url); vlc.playlist.playItem(0); + + //enable yadif2x deinterlacer for vlc > 1.1 + var point1 = vlc.VersionInfo.indexOf('.'); + var point2 = vlc.VersionInfo.indexOf('.', point1+1); + var majVersion = vlc.VersionInfo.substring(0,point1); + var minVersion = vlc.VersionInfo.substring(point1+1,point2); + if ((majVersion >= 1) && (minVersion >= 1)) + vlc.video.deinterlace.enable("yadif2x"); } } }); -- 2.47.2