]> git.sesse.net Git - vlc/commitdiff
Removed dead code (vout).
authorLaurent Aimar <fenrir@videolan.org>
Mon, 10 May 2010 20:01:13 +0000 (22:01 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 10 May 2010 21:02:21 +0000 (23:02 +0200)
src/video_output/video_output.c
src/video_output/vout_internal.h

index 8d82a419a19c661b088f822143badbfa34a300fe..a703260d60ede6b3419f9d768efa8b0f52968341 100644 (file)
@@ -136,33 +136,7 @@ vout_thread_t *vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
     {
         vlc_mutex_lock( &p_vout->p->change_lock );
 
-        /* We don't directly check for the "vout-filter" variable for obvious
-         * performance reasons. */
-        if( p_vout->p->b_filter_change )
-        {
-            char *psz_filter_chain = var_GetString( p_vout, "vout-filter" );
-
-            if( psz_filter_chain && !*psz_filter_chain )
-            {
-                free( psz_filter_chain );
-                psz_filter_chain = NULL;
-            }
-            if( p_vout->p->psz_filter_chain && !*p_vout->p->psz_filter_chain )
-            {
-                free( p_vout->p->psz_filter_chain );
-                p_vout->p->psz_filter_chain = NULL;
-            }
-
-            if( !psz_filter_chain && !p_vout->p->psz_filter_chain )
-            {
-                p_vout->p->b_filter_change = false;
-            }
-
-            free( psz_filter_chain );
-        }
-
-        if( !video_format_IsSimilar( &p_vout->p->original, p_fmt ) ||
-            p_vout->p->b_filter_change )
+        if( !video_format_IsSimilar( &p_vout->p->original, p_fmt ) )
         {
             vlc_mutex_unlock( &p_vout->p->change_lock );
 
@@ -250,7 +224,6 @@ vout_thread_t * (vout_Create)( vlc_object_t *p_parent, video_format_t *p_fmt )
     vout_control_Init( &p_vout->p->control );
     vout_chrono_Init( &p_vout->p->render, 5, 10000 ); /* Arbitrary initial time */
     vout_statistic_Init( &p_vout->p->statistic );
-    p_vout->p->b_filter_change = 0;
     p_vout->p->i_par_num =
     p_vout->p->i_par_den = 1;
     p_vout->p->displayed.date = VLC_TS_INVALID;
index f8baf521147b95744c81a5177dc688a6c172cd16..26e8d1ea072817cfba981dacaf426f3c090ac2c0 100644 (file)
@@ -102,7 +102,6 @@ struct vout_thread_sys_t
 
     /* Filter chain */
     char           *psz_filter_chain;
-    bool            b_filter_change;
 
     /* Video filter2 chain */
     vlc_mutex_t     vfilter_lock;