mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +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:
|
case GstPlayer.PlayerAudioInfo:
|
||||||
type = 'audio';
|
type = 'audio';
|
||||||
let codec = info.get_codec();
|
let codec = info.get_codec();
|
||||||
// This one is too long to fit nicely in UI
|
if(codec.includes('(')) {
|
||||||
if(codec.startsWith('Free Lossless Audio Codec'))
|
codec = codec.substring(
|
||||||
codec = 'FLAC';
|
codec.indexOf('(') + 1,
|
||||||
|
codec.indexOf(')')
|
||||||
|
);
|
||||||
|
}
|
||||||
text = info.get_language() || 'Unknown';
|
text = info.get_language() || 'Unknown';
|
||||||
text += ', ' + codec + ', '
|
text += ', ' + codec + ', '
|
||||||
+ info.get_channels() + ' Channels';
|
+ info.get_channels() + ' Channels';
|
||||||
|
Reference in New Issue
Block a user