Commit 9dc1a1ae authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Fix positioning of dvbsub. closes #1686

This was caused by commit 23cc599d and an attempt at fixing it in commit 251648e3.
parent a82e5fca
...@@ -329,7 +329,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -329,7 +329,7 @@ static int Open( vlc_object_t *p_this )
i_posy = val.i_int; i_posy = val.i_int;
/* Check if subpicture position was overridden */ /* 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; p_sys->i_spu_x = p_sys->i_spu_y = 0;
if( ( i_posx >= 0 ) && ( i_posy >= 0 ) ) if( ( i_posx >= 0 ) && ( i_posy >= 0 ) )
...@@ -1592,7 +1592,6 @@ static subpicture_t *render( decoder_t *p_dec ) ...@@ -1592,7 +1592,6 @@ static subpicture_t *render( decoder_t *p_dec )
/* Correct positioning of SPU */ /* Correct positioning of SPU */
p_spu->b_absolute = p_sys->b_absolute; 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_x = p_sys->i_spu_x;
p_spu->i_y = p_sys->i_spu_y; p_spu->i_y = p_sys->i_spu_y;
p_spu->i_original_picture_width = 720; p_spu->i_original_picture_width = 720;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment