Changeset a76c04610bb31cd895cbd43bc1f93e871772c043

Show
Ignore:
Timestamp:
06/30/08 00:01:52 (2 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1214776912 +0000
git-parent:

[fae2f3f288543e0024d9a64bf940f9bc45778ae7]

git-author:
Laurent Aimar <fenrir@videolan.org> 1214776912 +0000
Message:

Cosmetics (moved down filter2 update)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/video_output/video_output.c

    rfae2f3f ra76c046  
    914914        } 
    915915 
    916         /* Video Filter2 stuff */ 
    917         if( p_vout->psz_vf2 ) 
    918         { 
    919             es_format_t fmt; 
    920  
    921             vlc_mutex_lock( &p_vout->vfilter_lock ); 
    922  
    923             es_format_Init( &fmt, VIDEO_ES, p_vout->fmt_render.i_chroma ); 
    924             fmt.video = p_vout->fmt_render; 
    925             filter_chain_Reset( p_vout->p_vf2_chain, &fmt, &fmt ); 
    926  
    927             if( filter_chain_AppendFromString( p_vout->p_vf2_chain, 
    928                                                p_vout->psz_vf2 ) < 0 ) 
    929                 msg_Err( p_vout, "Video filter chain creation failed" ); 
    930  
    931             free( p_vout->psz_vf2 ); 
    932             p_vout->psz_vf2 = NULL; 
    933             vlc_mutex_unlock( &p_vout->vfilter_lock ); 
    934         } 
    935  
    936916        if( p_picture ) 
    937917        { 
     
    11181098            vlc_mutex_unlock( &p_vout->picture_lock ); 
    11191099        } 
     1100 
     1101        /* Check for "video filter2" changes */ 
     1102        vlc_mutex_lock( &p_vout->vfilter_lock ); 
     1103        if( p_vout->psz_vf2 ) 
     1104        { 
     1105            es_format_t fmt; 
     1106 
     1107            es_format_Init( &fmt, VIDEO_ES, p_vout->fmt_render.i_chroma ); 
     1108            fmt.video = p_vout->fmt_render; 
     1109            filter_chain_Reset( p_vout->p_vf2_chain, &fmt, &fmt ); 
     1110 
     1111            if( filter_chain_AppendFromString( p_vout->p_vf2_chain, 
     1112                                               p_vout->psz_vf2 ) < 0 ) 
     1113                msg_Err( p_vout, "Video filter chain creation failed" ); 
     1114 
     1115            free( p_vout->psz_vf2 ); 
     1116            p_vout->psz_vf2 = NULL; 
     1117        } 
     1118        vlc_mutex_unlock( &p_vout->vfilter_lock ); 
    11201119    } 
    11211120