* src/video_output/video_output.c: oops, fixed a bug I just introduced.
authorGildas Bazin <gbazin@videolan.org>
Tue, 28 Jan 2003 13:07:45 +0000 (13:07 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 28 Jan 2003 13:07:45 +0000 (13:07 +0000)
src/video_output/video_output.c

index 6b36c9a..e2f8d03 100644 (file)
@@ -5,7 +5,7 @@
  * thread, and destroy a previously oppened video output thread.
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: video_output.c,v 1.208 2003/01/28 12:30:44 gbazin Exp $
+ * $Id: video_output.c,v 1.209 2003/01/28 13:07:45 gbazin Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *
@@ -134,6 +134,7 @@ vout_thread_t * __vout_Request ( vlc_object_t *p_this, vout_thread_t *p_vout,
                 p_vout->b_filter_change = VLC_FALSE;
             }
 
+            if( psz_filter_chain ) free( psz_filter_chain );
         }
 
         if( ( p_vout->render.i_width != i_width ) ||
@@ -155,8 +156,6 @@ vout_thread_t * __vout_Request ( vlc_object_t *p_this, vout_thread_t *p_vout,
             vlc_object_attach( p_vout, p_this );
             vlc_object_release( p_vout );
         }
-
-        if( psz_filter_chain ) free( psz_filter_chain );
     }
 
     if( !p_vout )