]> git.sesse.net Git - vlc/commitdiff
* modules/video_filter/logo.c: small fix.
authorGildas Bazin <gbazin@videolan.org>
Fri, 17 Sep 2004 10:21:00 +0000 (10:21 +0000)
committerGildas Bazin <gbazin@videolan.org>
Fri, 17 Sep 2004 10:21:00 +0000 (10:21 +0000)
modules/video_filter/logo.c

index 356b2eb5481dbe5c286f7f2aa9ff4c7d1ba91529..7c59d9fb1f4d0c3040f542b425a3f020bea31b67 100644 (file)
@@ -545,10 +545,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
     subpicture_region_t *p_region;
     video_format_t fmt;
 
-    if( p_sys->i_last_date && p_sys->i_last_date + 5000000 > date )
-    {
-        return 0;
-    }
+    if( p_sys->i_last_date && p_sys->i_last_date + 5000000 > date ) return 0;
 
     /* Allocate the subpicture internal data. */
     p_spu = p_filter->pf_sub_buffer_new( p_filter );
@@ -576,7 +573,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
     p_spu->i_y = p_sys->posy;
     p_spu->p_region = p_region;
 
-    p_spu->i_start = date;
+    p_spu->i_start = p_sys->i_last_date = date;
     p_spu->i_stop = 0;
     p_spu->b_ephemer = VLC_TRUE;