]> git.sesse.net Git - vlc/commitdiff
* Fixed a little crash introduced in my previous commit :-)
authorSam Hocevar <sam@videolan.org>
Thu, 15 Nov 2001 18:11:50 +0000 (18:11 +0000)
committerSam Hocevar <sam@videolan.org>
Thu, 15 Nov 2001 18:11:50 +0000 (18:11 +0000)
  * Removed more unused code.

plugins/motion/motionmmxext.c
src/input/input_dec.c

index b78b933a41186204735f8f1b01a8283b91a0f445..227624c1111ee3b2c24e7a86e1d4c66135da6278 100644 (file)
@@ -2,7 +2,7 @@
  * motionmmxext.c : MMX EXT motion compensation module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: motionmmxext.c,v 1.11 2001/09/06 14:02:56 massiot Exp $
+ * $Id: motionmmxext.c,v 1.12 2001/11/15 18:11:50 sam Exp $
  *
  * Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
  *          Michel Lespinasse <walken@zoy.org>
@@ -562,30 +562,6 @@ static void MC_put_y8_3dnow (yuv_data_t * dest, yuv_data_t * ref,
     MC_put2_8 (height, dest, ref, stride, stride, CPU_3DNOW);
 }
 
-static void MC_avg_xy16_3dnow (yuv_data_t * dest, yuv_data_t * ref,
-                                int stride, int height)
-{
-    MC_avg4_16 (height, dest, ref, stride, CPU_3DNOW);
-}
-
-static void MC_avg_xy8_3dnow (yuv_data_t * dest, yuv_data_t * ref,
-                               int stride, int height)
-{
-    MC_avg4_8 (height, dest, ref, stride, CPU_3DNOW);
-}
-
-static void MC_put_xy16_3dnow (yuv_data_t * dest, yuv_data_t * ref,
-                                int stride, int height)
-{
-    MC_put4_16 (height, dest, ref, stride, CPU_3DNOW);
-}
-
-static void MC_put_xy8_3dnow (yuv_data_t * dest, yuv_data_t * ref,
-                               int stride, int height)
-{
-    MC_put4_8 (height, dest, ref, stride, CPU_3DNOW);
-}
-
 /*****************************************************************************
  * Functions exported as capabilities. They are declared as static so that
  * we don't pollute the namespace too much.
index 62868ba939f4697a0f51bf91b93df28397adedf1..c36da8502a190fc99c868ebb31a2bf419fad8a9a 100644 (file)
@@ -2,7 +2,7 @@
  * input_dec.c: Functions for the management of decoders
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_dec.c,v 1.15 2001/11/15 17:39:13 sam Exp $
+ * $Id: input_dec.c,v 1.16 2001/11/15 18:11:50 sam Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -130,6 +130,9 @@ void input_EndDecoder( input_thread_t * p_input, es_descriptor_t * p_es )
 
     /* Unneed module */
     module_Unneed( p_es->p_module );
+
+    /* Tell the input there is no more decoder */
+    p_es->p_decoder_fifo = NULL;
 }
 
 /*****************************************************************************
@@ -272,6 +275,7 @@ static decoder_config_t * CreateDecoderConfig( input_thread_t * p_input,
 static void DeleteDecoderConfig( decoder_config_t * p_config )
 {
     /* Free all packets still in the decoder fifo. */
+#if 0
     while( !DECODER_FIFO_ISEMPTY( *p_config->p_decoder_fifo ) )
     {
         p_config->p_decoder_fifo->pf_delete_pes(
@@ -279,13 +283,13 @@ static void DeleteDecoderConfig( decoder_config_t * p_config )
                             DECODER_FIFO_START( *p_config->p_decoder_fifo ) );
         DECODER_FIFO_INCSTART( *p_config->p_decoder_fifo );
     }
+#endif
 
     /* Destroy the lock and cond */
     vlc_cond_destroy( &p_config->p_decoder_fifo->data_wait );
     vlc_mutex_destroy( &p_config->p_decoder_fifo->data_lock );
 
     free( p_config->p_decoder_fifo );
-    p_config->p_decoder_fifo = NULL;
 
     free( p_config );
 }