1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00

command: expose hls-bitrate and program-id as track-list subproperties

This commit is contained in:
rcombs 2023-02-21 15:26:50 -06:00
parent 46199c02a0
commit b2a021d891

View File

@ -1977,6 +1977,10 @@ static int get_track_entry(int item, int action, void *arg, void *ctx)
{"external-filename", SUB_PROP_STR(track->external_filename),
.unavailable = !track->external_filename},
{"ff-index", SUB_PROP_INT(track->ff_index)},
{"hls-bitrate", SUB_PROP_INT(track->hls_bitrate),
.unavailable = !track->hls_bitrate},
{"program-id", SUB_PROP_INT(track->program_id),
.unavailable = track->program_id < 0},
{"decoder-desc", SUB_PROP_STR(decoder_desc),
.unavailable = !decoder_desc[0]},
{"codec", SUB_PROP_STR(p.codec),