]> granicus.if.org Git - libass/commitdiff
Only use first \org in a line.
authorgreg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 7 Mar 2009 23:56:03 +0000 (23:56 +0000)
committergreg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 7 Mar 2009 23:56:03 +0000 (23:56 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28873 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 7263413963b943209d77e17a46a3646e6611e291..d3347b6bbf1af82e2cab7ec6a3bd8c575ec69cdc 100644 (file)
@@ -1059,10 +1059,12 @@ static char* parse_tag(char* p, double pwr) {
                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;