1
0
Fork 0
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:
Brandon 2021-08-21 23:49:04 -07:00 committed by GitHub
parent f2b4ae881b
commit aa81f651b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,11 +173,13 @@ import ServerConnections from '../ServerConnections';
value: session.TranscodingInfo.TranscodeReasons.map(translateReason).join('<br/>')
});
}
if (session.TranscodingInfo.HardwareAccelerationType) {
sessionStats.push({
label: globalize.translate('LabelHardwareEncoding'),
value: session.TranscodingInfo.HardwareAccelerationType
});
}
}
return sessionStats;
}