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; return image.selected;
})[0]; })[0];
$list = Ox.IconList({ $list = Ox.IconList({
defaultRatio: ui.icons == 'posters' && data.stream.aspectratio defaultRatio: ui.icons == 'posters' || !data.stream ? 5/8 : data.stream.aspectratio,
? 5/8 fixedRatio: ui.icons == 'posters' || !data.stream ? false : data.stream.aspectratio,
: data.stream.aspectratio,
fixedRatio: ui.icons == 'posters' && data.stream.aspectratio
? false
: data.stream.aspectratio,
item: function(data, sort, size) { item: function(data, sort, size) {
var ratio = data.width / data.height; var ratio = data.width / data.height;
size = size || 128; size = size || 128;