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,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;