Changeset eb57119f90b0fc1042d5b9ac6e0032fd4733d65b

Show
Ignore:
Timestamp:
26/05/05 15:40:35 (3 years ago)
Author:
Christophe Massiot <massiot@videolan.org>
git-committer:
Christophe Massiot <massiot@videolan.org> 1117114835 +0000
git-parent:

[d7b6f81c17aa8865c47b867776c3caddbb405711]

git-author:
Christophe Massiot <massiot@videolan.org> 1117114835 +0000
Message:
  • modules/video_filter/mosaic.c: Fixed a major bug with video/audio synchro.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_filter/mosaic.c

    r0cb4c8f reb57119  
    392392        picture_t *p_converted; 
    393393 
    394         if ( p_es->b_empty || p_es->p_picture == NULL
     394        if ( p_es->b_empty
    395395            continue; 
    396396 
    397         if ( p_es->p_picture->date + p_sys->i_delay < date ) 
     397        while ( p_es->p_picture != NULL 
     398                 && p_es->p_picture->date + p_sys->i_delay < date ) 
    398399        { 
    399400            if ( p_es->p_picture->p_next != NULL ) 
     
    410411                p_es->p_picture = NULL; 
    411412                p_es->pp_last = &p_es->p_picture; 
    412                 continue
     413                break
    413414            } 
    414415            else 
     416            { 
    415417                msg_Dbg( p_filter, "too late picture for %s (" I64Fd ")", 
    416418                         p_es->psz_id, 
    417419                         date - p_es->p_picture->date - p_sys->i_delay ); 
    418         } 
     420                break; 
     421            } 
     422        } 
     423 
     424        if ( p_es->p_picture == NULL ) 
     425            continue; 
    419426 
    420427        if ( p_sys->i_order_length == 0 )