]> git.sesse.net Git - vlc/commitdiff
fix align setting, p_spu->p_region is null there
authorIlkka Ollakka <ileoo@videolan.org>
Fri, 1 Feb 2008 17:59:06 +0000 (17:59 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 1 Feb 2008 17:59:06 +0000 (17:59 +0000)
modules/video_filter/logo.c

index 71f8bc707adbc512eb61668ec11cf237e5fce00a..49aad2d64991e252dad774cf8a87afc326b2b8cd 100644 (file)
@@ -886,12 +886,12 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
     /*  where to locate the logo: */
     if( p_sys->pos < 0 )
     {   /*  set to an absolute xy */
-        p_spu->p_region->i_align = OSD_ALIGN_RIGHT | OSD_ALIGN_TOP;
+        p_region->i_align = OSD_ALIGN_RIGHT | OSD_ALIGN_TOP;
         p_spu->b_absolute = VLC_TRUE;
     }
     else
     {   /* set to one of the 9 relative locations */
-        p_spu->p_region->i_align = p_sys->pos;
+        p_region->i_align = p_sys->pos;
         p_spu->b_absolute = VLC_FALSE;
     }