summaryrefslogtreecommitdiffstats
path: root/sub/dec_sub.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-07 21:23:23 +0200
committerwm4 <wm4@nowhere>2015-04-07 21:24:22 +0200
commit579c4dac34546357a5fd1dfd67712df6a5930bf6 (patch)
tree917ea7531726635db21fb5c327f13acfd8352368 /sub/dec_sub.c
parente98ab5e596b003b68e44e8c94b5e393e52ed6b6b (diff)
downloadmpv-579c4dac34546357a5fd1dfd67712df6a5930bf6.tar.bz2
mpv-579c4dac34546357a5fd1dfd67712df6a5930bf6.tar.xz
audio: change a detail about filter insertion
The af_add() function has a problem: if the inserted filter returns AF_DETACH during init, the function will have a dangling pointer. Until now this was avoided by making sure none of the used filters actually return AF_DETACH, but it's getting infeasible. Solve this by requiring passing an unique label to af_add(), which is then used instead of the pointer.
Diffstat (limited to 'sub/dec_sub.c')
0 files changed, 0 insertions, 0 deletions