From f429b4eaa89d9d752b2701582ebc287265f20450 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 29 Apr 2013 01:19:56 +0200 Subject: 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. --- sub/spudec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sub') diff --git a/sub/spudec.c b/sub/spudec.c index 87cd46bdd7..07dbb3af07 100644 --- a/sub/spudec.c +++ b/sub/spudec.c @@ -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; } -- cgit v1.2.3