[MPlayer-cvslog] r28873 - trunk/libass/ass_render.c

greg subversion at mplayerhq.hu
Sun Mar 8 00:56:08 CET 2009


Author: greg
Date: Sun Mar  8 00:56:03 2009
New Revision: 28873

Log:
Only use first \org in a line.

Modified:
   trunk/libass/ass_render.c

Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	Sat Mar  7 18:41:34 2009	(r28872)
+++ trunk/libass/ass_render.c	Sun Mar  8 00:56:03 2009	(r28873)
@@ -1059,10 +1059,12 @@ static char* parse_tag(char* p, double p
 		skip(')');
 		mp_msg(MSGT_ASS, MSGL_DBG2, "org(%d, %d)\n", v1, v2);
 		//				render_context.evt_type = EVENT_POSITIONED;
-		render_context.org_x = v1;
-		render_context.org_y = v2;
-		render_context.have_origin = 1;
-		render_context.detect_collisions = 0;
+		if (!render_context.have_origin) {
+			render_context.org_x = v1;
+			render_context.org_y = v2;
+			render_context.have_origin = 1;
+			render_context.detect_collisions = 0;
+		}
 	} else if (mystrcmp(&p, "t")) {
 		double v[3];
 		int v1, v2;



More information about the MPlayer-cvslog mailing list