mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Wrap HardwareAccelerationType with if
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
f2b4ae881b
commit
aa81f651b7
1 changed files with 6 additions and 4 deletions
|
@ -173,10 +173,12 @@ import ServerConnections from '../ServerConnections';
|
||||||
value: session.TranscodingInfo.TranscodeReasons.map(translateReason).join('<br/>')
|
value: session.TranscodingInfo.TranscodeReasons.map(translateReason).join('<br/>')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
sessionStats.push({
|
if (session.TranscodingInfo.HardwareAccelerationType) {
|
||||||
label: globalize.translate('LabelHardwareEncoding'),
|
sessionStats.push({
|
||||||
value: session.TranscodingInfo.HardwareAccelerationType
|
label: globalize.translate('LabelHardwareEncoding'),
|
||||||
});
|
value: session.TranscodingInfo.HardwareAccelerationType
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return sessionStats;
|
return sessionStats;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue