From e20fe9f2fea465463a2c1e05be076151c3da1045 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 21 Feb 2013 01:54:18 +0530 Subject: [PATCH] fix a bug in video player --- source/Ox.UI/js/Video/VideoPlayer.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoPlayer.js b/source/Ox.UI/js/Video/VideoPlayer.js index ffbe4ae9..cf14c68e 100644 --- a/source/Ox.UI/js/Video/VideoPlayer.js +++ b/source/Ox.UI/js/Video/VideoPlayer.js @@ -1917,10 +1917,12 @@ Ox.VideoPlayer = function(options, self) { ) || ( isResolution(title) && parseInt(title, 10) == self.options.resolution - ) || title == Ox.getObjectById( - self.options.timelineTypes, - self.options.timelineType - ).title; + ) || ( + self.options.timelineTypes.length + && title == Ox.getObjectById( + self.options.timelineTypes, + self.options.timelineType + ).title; $(children[1]).attr({ src: Ox.UI.getImageURL( 'symbol' + (checked ? 'Check' : 'None')