spudec: restore --sub-forced-only support

This was broken with 84829a4 "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 in fd5c4a1.
This commit is contained in:
wm4 2013-04-29 01:19:56 +02:00
parent 2684280643
commit f429b4eaa8
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}