]> git.sesse.net Git - vlc/blobdiff - modules/video_output/image.c
* fixed some untranslatable strings and strings which existed both with and without...
[vlc] / modules / video_output / image.c
index b5ae3bab3e1db3992702a507b8409fb7aa3bbfcd..559ccc6ea89ebecc965a55d5dc00c68f67f7bfc8 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * image.c : image video output
  *****************************************************************************
- * Copyright (C) 2004 VideoLAN
+ * Copyright (C) 2004 the VideoLAN team
  * $Id: snapshot.c 8644 2004-09-05 16:53:04Z fkuehne $
  *
  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
@@ -57,7 +57,7 @@ static void Display   ( vout_thread_t *, picture_t * );
                             "will have the form prefixNUMBER.format" )
 
 static char *psz_format_list[] = { "png" };
-static char *psz_format_list_text[] = { N_("PNG") };
+static char *psz_format_list_text[] = { "PNG" };
 
 vlc_module_begin( );
     set_shortname( _( "Image file" ) );
@@ -193,8 +193,14 @@ static int Init( vout_thread_t *p_vout )
  *****************************************************************************/
 static void Destroy( vlc_object_t *p_this )
 {
+    int i_index;
     vout_thread_t *p_vout = ( vout_thread_t * )p_this;
 
+    for( i_index = I_OUTPUTPICTURES-1; i_index >= 0; i_index-- )
+    {
+        free( PP_OUTPUTPICTURE[ i_index ]->p_data );
+    }
+
     /* Destroy structure */
     image_HandlerDelete( p_vout->p_sys->p_image );
     FREE( p_vout->p_sys->psz_prefix );