]> git.sesse.net Git - vlc/commitdiff
Only try creating the filter chain once.
authorAntoine Cellerier <dionoea@videolan.org>
Wed, 4 Jun 2008 14:53:19 +0000 (16:53 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 4 Jun 2008 20:05:07 +0000 (22:05 +0200)
src/video_output/video_output.c

index ac2e2d99f54c1c02229c7e43eee769d27ec71a69..f3961a4efb4f9514d6e412e5dbab916c4e42b5cd 100644 (file)
@@ -966,11 +966,8 @@ static void RunThread( vout_thread_t *p_vout)
                                                p_vout->psz_vf2 ) < 0 )
                 msg_Err( p_vout, "Video filter chain creation failed" );
 
-            else
-            {
-                free( p_vout->psz_vf2 );
-                p_vout->psz_vf2 = NULL;
-            }
+            free( p_vout->psz_vf2 );
+            p_vout->psz_vf2 = NULL;
             vlc_mutex_unlock( &p_vout->vfilter_lock );
         }