mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Display shorter names for all audio codecs
This commit is contained in:
@@ -151,9 +151,12 @@ class ClapperInterface extends Gtk.Grid
|
||||
case GstPlayer.PlayerAudioInfo:
|
||||
type = 'audio';
|
||||
let codec = info.get_codec();
|
||||
// This one is too long to fit nicely in UI
|
||||
if(codec.startsWith('Free Lossless Audio Codec'))
|
||||
codec = 'FLAC';
|
||||
if(codec.includes('(')) {
|
||||
codec = codec.substring(
|
||||
codec.indexOf('(') + 1,
|
||||
codec.indexOf(')')
|
||||
);
|
||||
}
|
||||
text = info.get_language() || 'Unknown';
|
||||
text += ', ' + codec + ', '
|
||||
+ info.get_channels() + ' Channels';
|
||||
|
Reference in New Issue
Block a user