mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
spudec: restore --sub-forced-only support
This was broken with84829a4
"Merge branch 'osd_changes' into master". The new OSD/subtitle code never respected the --sub-forced-only option, and the old code containing the code for this was removed infd5c4a1
.
This commit is contained in:
parent
2684280643
commit
f429b4eaa8
@ -629,6 +629,8 @@ int spudec_visible(void *this){
|
||||
spu->now_pts < spu->end_pts &&
|
||||
spu->height > 0);
|
||||
// printf("spu visible: %d \n",ret);
|
||||
if ((spu->forced_subs_only) && !(spu->is_forced_sub))
|
||||
ret = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user