Skip to content

Commit

Permalink
update track title format
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Feb 29, 2024
1 parent bc1c5f0 commit 5112d48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lua/dyn_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ local function build_track_title(track, prefix, filename)
if track['demux-h'] then
h(track['demux-w'] and (track['demux-w'] .. 'x' .. track['demux-h'] or track['demux-h'] .. 'p'))
end
if track['demux-fps'] then h(string.format('%.3g fps', track['demux-fps'])) end
if track['demux-fps'] then h(string.format('%.5g fps', track['demux-fps'])) end
if track['audio-channels'] then h(track['audio-channels'] .. ' ch') end
if track['demux-samplerate'] then h(string.format('%.3g kHz', track['demux-samplerate'] / 1000)) end
if track['demux-bitrate'] then h(string.format('%.3g kbps', track['demux-bitrate'] / 1000)) end
if track['demux-samplerate'] then h(string.format('%.5g kHz', track['demux-samplerate'] / 1000)) end
if track['demux-bitrate'] then h(string.format('%.5g kbps', track['demux-bitrate'] / 1000)) end
if #hints > 0 then title = string.format('%s [%s]', title, table.concat(hints, ', ')) end

-- put some important info at the end
Expand Down

0 comments on commit 5112d48

Please sign in to comment.