]> git.sesse.net Git - vlc/commitdiff
Fix positioning of dvbsub. closes #1686
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 10 Jul 2008 00:07:49 +0000 (02:07 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 10 Jul 2008 00:07:49 +0000 (02:07 +0200)
This was caused by commit 23cc599d06abb5c84913c7399dd08c6b283fc49e and an attempt at fixing it in commit 251648e32246c48729986e65678bac16e5061e47.

modules/codec/dvbsub.c

index a56c83d554742804d2d1732d179d9950d75db25f..677c4012d00565ffb41df977f54346a4081c4aff 100644 (file)
@@ -329,7 +329,7 @@ static int Open( vlc_object_t *p_this )
     i_posy = val.i_int;
 
     /* Check if subpicture position was overridden */
-    p_sys->b_absolute = false;
+    p_sys->b_absolute = true;
     p_sys->i_spu_x = p_sys->i_spu_y = 0;
 
     if( ( i_posx >= 0 ) && ( i_posy >= 0 ) )
@@ -1592,7 +1592,6 @@ static subpicture_t *render( decoder_t *p_dec )
 
     /* Correct positioning of SPU */
     p_spu->b_absolute = p_sys->b_absolute;
-    p_spu->i_flags = p_sys->i_spu_position;
     p_spu->i_x = p_sys->i_spu_x;
     p_spu->i_y = p_sys->i_spu_y;
     p_spu->i_original_picture_width = 720;