stream might be null

This commit is contained in:
j 2012-05-30 17:40:43 +02:00
parent 4d89b8066b
commit 191e5d44ad

View file

@ -685,12 +685,8 @@ pandora.ui.infoView = function(data) {
return image.selected;
})[0];
$list = Ox.IconList({
defaultRatio: ui.icons == 'posters' && data.stream.aspectratio
? 5/8
: data.stream.aspectratio,
fixedRatio: ui.icons == 'posters' && data.stream.aspectratio
? false
: data.stream.aspectratio,
defaultRatio: ui.icons == 'posters' || !data.stream ? 5/8 : data.stream.aspectratio,
fixedRatio: ui.icons == 'posters' || !data.stream ? false : data.stream.aspectratio,
item: function(data, sort, size) {
var ratio = data.width / data.height;
size = size || 128;