Skip to content

Commit

Permalink
LinGUI: Show audio bitrate in queue
Browse files Browse the repository at this point in the history
  • Loading branch information
robxnano authored and galad87 committed Nov 29, 2023
1 parent d1f57f8 commit 60a2aca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gtk/src/queuehandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,13 +578,15 @@ static void queue_update_summary (GhbValue * queueDict, signal_user_data_t *ud)
const char * lang;
int gain;
int track;
int bitrate;

asettings = ghb_array_get(audioList, ii);
track = ghb_dict_get_int(asettings, "Track");
asource = ghb_array_get(sourceAudioList, track);
lang = ghb_dict_get_string(asource, "Language");
name = ghb_dict_get_string(asettings, "Name");
gain = ghb_dict_get_int(asettings, "Gain");
bitrate = ghb_dict_get_int(asettings, "Bitrate");
audio_encoder = ghb_settings_audio_encoder(asettings, "Encoder");
if (name)
{
Expand All @@ -602,7 +604,8 @@ static void queue_update_summary (GhbValue * queueDict, signal_user_data_t *ud)
else
{
audio_mix = ghb_settings_mixdown(asettings, "Mixdown");
g_string_append_printf(str, "%s, %s, %s", lang,
g_string_append_printf(str, "%s, %d %s %s, %s", lang,
bitrate, _("kbps"),
audio_encoder->name, audio_mix->name);
}
if (gain)
Expand Down

0 comments on commit 60a2aca

Please sign in to comment.