comparison mplayer.c @ 34494:fede902a408c

Fix per-file ASS options like -ass-force-style. Previously the per-file settings were (sometimes at least) completely ignored and only the global ones used.
author reimar
date Thu, 19 Jan 2012 23:20:37 +0000
parents ce8b1d7d54fe
children b85d4539ad07
comparison
equal deleted inserted replaced
34493:da31318562d9 34494:fede902a408c
3163 mp_property_do("sub_forced_only", M_PROPERTY_SET, &forced_subs_only, mpctx); 3163 mp_property_do("sub_forced_only", M_PROPERTY_SET, &forced_subs_only, mpctx);
3164 3164
3165 // setup global sub numbering 3165 // setup global sub numbering
3166 mpctx->sub_counts[SUB_SOURCE_VOBSUB] = vobsub_get_indexes_count(vo_vobsub); 3166 mpctx->sub_counts[SUB_SOURCE_VOBSUB] = vobsub_get_indexes_count(vo_vobsub);
3167 } 3167 }
3168 #ifdef CONFIG_ASS
3169 // must be before demuxer open, since the settings are
3170 // used in generating the ASSTrack
3171 if (ass_enabled && ass_library)
3172 ass_mp_reset_config(ass_library);
3173 #endif
3168 3174
3169 //============ Open & Sync STREAM --- fork cache2 ==================== 3175 //============ Open & Sync STREAM --- fork cache2 ====================
3170 3176
3171 mpctx->stream = NULL; 3177 mpctx->stream = NULL;
3172 mpctx->demuxer = NULL; 3178 mpctx->demuxer = NULL;