From: Andreas Ă–man Date: Tue, 10 May 2011 18:07:05 +0000 (+0200) Subject: webui: Enable YADIF in VLC if VLC version >1.1 X-Git-Tag: 2.99~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77cbb4ba34aa4ede333a4d631c692b4cb8953235;p=thirdparty%2Ftvheadend.git webui: Enable YADIF in VLC if VLC version >1.1 --- 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"); } } });