diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-07-22 20:45:10 +0300 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2021-08-05 21:32:22 +0300 |
commit | 62704e231578d9593739d62b82a676ddbda84ac0 (patch) | |
tree | 18e720335b827ab755f96979369b252a7ea9d444 /stream/dvbin.h | |
parent | ab689a33a86d806726ee551fb25994fd0918a2a2 (diff) | |
download | mpv-62704e231578d9593739d62b82a676ddbda84ac0.tar.bz2 mpv-62704e231578d9593739d62b82a676ddbda84ac0.tar.xz |
sub: SDH filter: small refinements
1. On a pathological case where event_format is NULL, previously the
filter was trying to use it with each new sub - and re-failed. Now
the filter gets disabled on init (event_format doesn't change).
2. Previously, if the filter didn't modify the text or if the text
could not be extracted - it still allocated a new packet with same
content. Now it returns the original, saving a whole lot of no-ops
(there are still few allocations in this case though).
1 above is preparation for the next commit, and 2 was trivial, but
there's more to do if anyone cares (NIH string functions instead of
bstr, unused arguments, messages could be improved, and more).
Diffstat (limited to 'stream/dvbin.h')
0 files changed, 0 insertions, 0 deletions