Commit 25451bc
player/command: don't refresh sub stream on UPDATE_SUB option updates
Back when reselect_demux_stream call was added in this path in 700f72f,
sub_redecode_cached_packets only retained the last two packets. The
subtitle decoder cache was changed in 0a4b098 to retain the whole packet
sequence. Therefore sub_redecode_cached_packets by itself can rebuild
the new decoder state entirely from packets held in memory, and we no
longer need the demuxer to refresh the track.
This fixes expensive track refresh for network streams, where changing
some sub-* options during runtime of network streams would cause the
cache to be dropped1 parent 94335ab commit 25451bc
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8247 | 8247 | | |
8248 | 8248 | | |
8249 | 8249 | | |
8250 | | - | |
8251 | | - | |
8252 | | - | |
8253 | 8250 | | |
8254 | 8251 | | |
8255 | 8252 | | |
| |||
0 commit comments