Skip to content

Commit

Permalink
webui: Enable YADIF in VLC if VLC version >1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed May 10, 2011
1 parent 1b05817 commit 77cbb4b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/webui/static/app/tvheadend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
});
Expand Down

0 comments on commit 77cbb4b

Please sign in to comment.