changeset 19584:586e7d259d05

Apply -ass-force-style also to tracks generated from subdata.
author eugeni
date Tue, 29 Aug 2006 10:35:58 +0000
parents 94e4ef4195d3
children 5ba92e0ab9b7
files libass/ass.c libass/ass_mp.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass.c	Tue Aug 29 00:57:26 2006 +0000
+++ b/libass/ass.c	Tue Aug 29 10:35:58 2006 +0000
@@ -313,7 +313,7 @@
  * \param track track to apply overrides to
  * The format for overrides is [StyleName.]Field=Value
  */
-static void process_force_style(ass_track_t* track) {
+void process_force_style(ass_track_t* track) {
 	char **fs, *eq, *dt, *style, *tname, *token;
 	ass_style_t* target;
 	int sid;
--- a/libass/ass_mp.c	Tue Aug 29 00:57:26 2006 +0000
+++ b/libass/ass_mp.c	Tue Aug 29 10:35:58 2006 +0000
@@ -21,6 +21,7 @@
 extern int subtitle_autoscale;
 
 extern double ass_internal_font_size_coeff; 
+extern void process_force_style(ass_track_t* track);
 
 /**
  * \brief Convert subdata to ass_track
@@ -107,6 +108,7 @@
 		p--; // remove last ' '
 		*p = 0;
 	}
+	process_force_style(track);
 	return track;
 }