summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authordudemanguy <random342@airmail.cc>2018-10-26 09:51:47 -0500
committerwm4 <1387750+wm4@users.noreply.github.com>2019-09-21 15:36:58 +0200
commit48740dfec5303a390e223b0626daf4730f65f948 (patch)
tree9576e09084fca777447164d34eb44df7cf94f931 /sub
parent1591ccfff5871ef581d1d2992e9c517f29aaf301 (diff)
downloadmpv-48740dfec5303a390e223b0626daf4730f65f948.tar.bz2
mpv-48740dfec5303a390e223b0626daf4730f65f948.tar.xz
osd: allow sub-text to work even if sub-visibility is disabled
Diffstat (limited to 'sub')
-rw-r--r--sub/dec_sub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/dec_sub.c b/sub/dec_sub.c
index 6a0a753076..410d5a3214 100644
--- a/sub/dec_sub.c
+++ b/sub/dec_sub.c
@@ -367,7 +367,7 @@ char *sub_get_text(struct dec_sub *sub, double pts)
sub->last_vo_pts = pts;
update_segment(sub);
- if (opts->sub_visibility && sub->sd->driver->get_text)
+ if (sub->sd->driver->get_text)
text = sub->sd->driver->get_text(sub->sd, pts);
pthread_mutex_unlock(&sub->lock);
return text;