summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-30 17:05:39 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-30 17:05:39 +0000
commit74e6fb2c01ff7cb83c91510a41a63a0d6c435006 (patch)
tree9c2ee0c5a50a4e722dd98d788518b1fdbbfb906a /mplayer.c
parente0fb449076307855bb4a195e042eb3768473dbab (diff)
downloadmpv-74e6fb2c01ff7cb83c91510a41a63a0d6c435006.tar.bz2
mpv-74e6fb2c01ff7cb83c91510a41a63a0d6c435006.tar.xz
Set the forced_subs_only value correctly whenever a new spudec is created.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29108 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 81fc389ae0..e62e4414ee 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1125,8 +1125,10 @@ void init_vo_spudec(void) {
spudec_set_font_factor(vo_spudec,font_factor);
}
- if (vo_spudec!=NULL)
+ if (vo_spudec!=NULL) {
initialized_flags|=INITIALIZED_SPUDEC;
+ mp_property_do("sub_forced_only", M_PROPERTY_SET, &forced_subs_only, mpctx);
+ }
}
/*
@@ -3066,6 +3068,7 @@ if (edl_output_filename) {
if(vo_vobsub){
initialized_flags|=INITIALIZED_VOBSUB;
vobsub_set_from_lang(vo_vobsub, dvdsub_lang);
+ mp_property_do("sub_forced_only", M_PROPERTY_SET, &forced_subs_only, mpctx);
// setup global sub numbering
mpctx->global_sub_indices[SUB_SOURCE_VOBSUB] = mpctx->global_sub_size; // the global # of the first vobsub.