]> git.sesse.net Git - vlc/commitdiff
. fixed the bug-that-made-the-vlc-segfault-on-exit, which means that
authorSam Hocevar <sam@videolan.org>
Mon, 15 Jan 2001 06:18:23 +0000 (06:18 +0000)
committerSam Hocevar <sam@videolan.org>
Mon, 15 Jan 2001 06:18:23 +0000 (06:18 +0000)
   more than ever, � le client ne segfaulte pas �.

 . there was still a problem upon quitting: sometimes the null packet
   wasn't big enough to reach a decoder breakpoint, so I now create 10
   of them (since I can't make it bigger) to be sure. Meuuh, what do
   you think ?

 . fixed the Makefile to spare a few variables here and there.

 . reduced module hide delay, removed loading of the audio output
   plugins since they are now modules.

 . changed a few intf_Msg to intf_DbgMsg, and added "vout:", "intf:",
   and so on in a few other messages.

 . removed unused includes in the idct modules.

25 files changed:
Makefile.in
include/modules.h
plugins/beos/vout_beos.cpp
plugins/fb/vout_fb.c
plugins/gnome/intf_gnome.c
plugins/gnome/vout_gnome.c
plugins/idct/idct.c
plugins/idct/idct_common.c
plugins/idct/idctclassic.c
plugins/idct/idctmmx.c
plugins/mga/intf_mga.c
plugins/mga/vout_mga.c
plugins/sdl/intf_sdl.c
plugins/sdl/vout_sdl.c
plugins/x11/intf_x11.c
plugins/x11/vout_x11.c
src/input/input.c
src/input/input.h
src/input/input_dec.c
src/interface/interface.c
src/interface/main.c
src/misc/modules.c
src/misc/playlist.c
src/misc/plugins.c
src/video_output/video_output.c

index 17167cfaf6d366065d155ade959b2bd944d4dcc8..60001e3a68ae26737f0d043388e489109b9f40bf 100644 (file)
@@ -278,7 +278,7 @@ endif
 ifneq (,$(findstring 86,$(ARCH)))
 ifneq (,$(findstring mmx,$(ARCH)))
 ASM_OBJ =              src/video_output/video_yuv_mmx.o
-PLUGIN_IDCTMMX_ASM =   plugins/idct/idctmmx_asm.o
+STD_PLUGIN_ASM =       plugins/idct/idctmmx_asm.o
 endif
 endif
 
@@ -359,7 +359,8 @@ PLUGIN_IDCTCLASSIC =        plugins/idct/idctclassic.o \
                        plugins/idct/idct_common.o
 
 PLUGIN_IDCTMMX =       plugins/idct/idctmmx.o \
-                       plugins/idct/idct_common.o
+                       plugins/idct/idct_common.o \
+                       plugins/idct/idctmmx_asm.o
 
 PLUGIN_ALSA =  plugins/alsa/alsa.o \
                plugins/alsa/aout_alsa.o
@@ -380,12 +381,12 @@ STD_PLUGIN_OBJ =$(PLUGIN_BEOS) \
                $(PLUGIN_ALSA) \
                $(PLUGIN_NULL)
 
-STD_PLUGIN_ASM =$(PLUGIN_IDCTMMX_ASM)
-
+# list duplicates
 STD_PLUGIN_COMMON =    plugins/idct/idct_common.o
+
 # filter out duplicates from the plugin object lists
-STD_PLUGIN_OBJ :=      $(filter-out $(STD_PLUGIN_COMMON), $(STD_PLUGIN_OBJ)) \
-                       $(STD_PLUGIN_COMMON)
+STD_PLUGIN_OBJ :=      $(filter-out $(STD_PLUGIN_COMMON) $(STD_PLUGIN_ASM), \
+                                $(STD_PLUGIN_OBJ)) $(STD_PLUGIN_COMMON)
 
 #
 # Other lists of files
@@ -432,6 +433,7 @@ show:
        @echo CFLAGS: $(CFLAGS)
        @echo DCFLAGS: $(DCFLAGS)
        @echo LCFLAGS: $(LCFLAGS)
+       @echo STD_PLUGIN_OBJ: $(STD_PLUGIN_OBJ)
 
 # ugliest of all, but I have no time to do it -- sam
 snapshot:
@@ -571,7 +573,7 @@ lib/yuvmmx.so: $(PLUGIN_YUVMMX)
 lib/idctclassic.so: $(PLUGIN_IDCTCLASSIC)
        $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
 
-lib/idctmmx.so: $(PLUGIN_IDCTMMX) $(PLUGIN_IDCTMMX_ASM)
+lib/idctmmx.so: $(PLUGIN_IDCTMMX)
        $(CC) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
 else
 lib/yuv.so: $(PLUGIN_YUV)
@@ -586,7 +588,7 @@ lib/idct.so: $(PLUGIN_IDCT)
 lib/idctclassic.so: $(PLUGIN_IDCTCLASSIC)
        $(CC) $(PCFLAGS) -shared -o $@ $^
 
-lib/idctmmx.so: $(PLUGIN_IDCTMMX) $(PLUGIN_IDCTMMX_ASM)
+lib/idctmmx.so: $(PLUGIN_IDCTMMX)
        $(CC) $(PCFLAGS) -shared -o $@ $^
 endif
 
index 571179ed7f7b5d2f6b2f31ffa566ce8fa5e0d7da..96932ecfada9763c4d5f240387cae830a1451641 100644 (file)
@@ -21,7 +21,7 @@
  *****************************************************************************/
 
 /* Number of tries before we unload an unused module */
-#define MODULE_HIDE_DELAY 100
+#define MODULE_HIDE_DELAY 20
 
 /* The module handle type. */
 #ifdef SYS_BEOS
index 29f3016c5e44908555f246ea98eb42a99ee40553..7926dde6d65c8c92086dba3bb75bc12fd6d7be70 100644 (file)
@@ -462,7 +462,7 @@ int vout_BeManage( vout_thread_t *p_vout )
         /* Tell the video output thread that it will need to rebuild YUV
          * tables. This is needed since convertion buffer size may have changed */
         p_vout->i_changes |= VOUT_YUV_CHANGE;
-        intf_Msg("Video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
+        intf_Msg("vout: video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
     }
     return( 0 );
 }
index 052a7bbf2d783ac2284692d8897499483025d9ea..e1d92e95fd62b490c78a37994044cc9eb2260d34 100644 (file)
@@ -158,7 +158,7 @@ int vout_FBManage( vout_thread_t *p_vout )
         /* Tell the video output thread that it will need to rebuild YUV
          * tables. This is needed since conversion buffer size may have changed */
         p_vout->i_changes |= VOUT_YUV_CHANGE;
-        intf_Msg("Video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
+        intf_Msg("vout: video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
 #endif
     }
 
@@ -267,7 +267,7 @@ static int FBOpenDisplay( vout_thread_t *p_vout )
 
     /* FIXME: if the image is full-size, it gets cropped on the left
      * because of the xres / xres_virtual slight difference */
-    intf_Msg( "%ix%i (virtual %ix%i)", p_vout->p_sys->var_info.xres, p_vout->p_sys->var_info.yres, p_vout->p_sys->var_info.xres_virtual, p_vout->p_sys->var_info.yres_virtual );
+    intf_Msg( "vout: %ix%i (virtual %ix%i)", p_vout->p_sys->var_info.xres, p_vout->p_sys->var_info.yres, p_vout->p_sys->var_info.xres_virtual, p_vout->p_sys->var_info.yres_virtual );
     p_vout->i_width =                   p_vout->p_sys->var_info.xres_virtual ? p_vout->p_sys->var_info.xres_virtual : p_vout->p_sys->var_info.xres;
     p_vout->i_height =                  p_vout->p_sys->var_info.yres;
     p_vout->i_screen_depth =            p_vout->p_sys->var_info.bits_per_pixel;
index d43371eb0e4286ee808f199dce46bdcbdaf0f795..0f558ba2dad840155ec8ec219c6397661b6fbc92 100644 (file)
@@ -2,7 +2,7 @@
  * intf_gnome.c: Gnome interface
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: intf_gnome.c,v 1.6 2001/01/05 18:46:43 massiot Exp $
+ * $Id: intf_gnome.c,v 1.7 2001/01/15 06:18:22 sam Exp $
  *
  * Authors:
  *
@@ -171,9 +171,9 @@ void intf_GnomeDestroy( intf_thread_t *p_intf )
     if( p_intf->p_sys->p_gnome->thread_id )
     {
         p_intf->p_sys->p_gnome->b_die = 1;
-        intf_Msg( "waiting for Gnome thread to terminate" );
+        intf_DbgMsg( "intf: waiting for Gnome thread to terminate" );
         vlc_thread_join( p_intf->p_sys->p_gnome->thread_id );
-        intf_Msg( "Gnome thread terminated" );
+        intf_DbgMsg( "intf: Gnome thread terminated" );
     }
 
     /* Close main window and display */
@@ -258,7 +258,7 @@ static int GnomeCreateWindow( intf_thread_t *p_intf )
                              &p_intf->p_sys->wm_delete_window, 1 ) )
     {
         /* WM_DELETE_WINDOW is not supported by window manager */
-        intf_Msg("error: missing or bad window manager - please exit program kindly.");
+        intf_Msg("intf error: missing or bad window manager - please exit program kindly.");
     }
 
     /* Creation of a graphic context that doesn't generate a GraphicsExpose
@@ -478,7 +478,7 @@ void GnomeEnableScreenSaver( intf_thread_t *p_intf )
 {
     if( p_intf->p_sys->i_ss_count++ == 0 )
     {
-        intf_Msg( "Enabling screen saver" );
+        intf_DbgMsg( "intf: enabling screen saver" );
         XSetScreenSaver( p_intf->p_sys->p_display, p_intf->p_sys->i_ss_timeout,
                          p_intf->p_sys->i_ss_interval, p_intf->p_sys->i_ss_blanking,
                          p_intf->p_sys->i_ss_exposure );
@@ -500,7 +500,7 @@ void GnomeDisableScreenSaver( intf_thread_t *p_intf )
                          &p_intf->p_sys->i_ss_exposure );
 
         /* Disable screen saver */
-        intf_Msg("Disabling screen saver");
+        intf_DbgMsg("intf: disabling screen saver");
         XSetScreenSaver( p_intf->p_sys->p_display, 0,
                          p_intf->p_sys->i_ss_interval, p_intf->p_sys->i_ss_blanking,
                          p_intf->p_sys->i_ss_exposure );
index b391f7a601a3ddae8810b6393df28024f59ef302..fe4443d9cbdd901c4e5df0b656c78fdc3791220a 100644 (file)
@@ -153,7 +153,7 @@ int vout_GnomeInit( vout_thread_t *p_vout )
         }
         if( i_err )                                      /* an error occured */
         {
-            intf_Msg("XShm video extension deactivated" );
+            intf_Msg("vout: XShm video extension deactivated" );
             p_vout->p_sys->b_shm = 0;
         }
     }
@@ -260,7 +260,7 @@ int vout_GnomeManage( vout_thread_t *p_vout )
         /* Tell the video output thread that it will need to rebuild YUV
          * tables. This is needed since convertion buffer size may have changed */
         p_vout->i_changes |= VOUT_YUV_CHANGE;
-        intf_Msg("Video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
+        intf_Msg("vout: video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
     }
 
     return 0;
@@ -359,7 +359,7 @@ static int X11OpenDisplay( vout_thread_t *p_vout, char *psz_display, Window root
     p_vout->p_sys->i_screen     = DefaultScreen( p_vout->p_sys->p_display );
     if( !p_vout->p_sys->b_shm )
     {
-        intf_Msg("XShm video extension is not available");
+        intf_Msg("vout: XShm video extension is not available");
     }
 
     /* Get screen depth */
index 72f671cc9d8656b5c41719f5b3643042a4b6f20e..4688b672543dc15a113732855925961d7a304f98 100644 (file)
@@ -2,7 +2,7 @@
  * idct.c : IDCT module
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: idct.c,v 1.1 2001/01/13 12:57:20 sam Exp $
+ * $Id: idct.c,v 1.2 2001/01/15 06:18:23 sam Exp $
  *
  * Authors: Gaël Hendryckx <jimmy@via.ecp.fr>
  *
 #include "common.h"
 #include "threads.h"
 #include "mtime.h"
-#include "plugins.h"
-
-#include "intf_msg.h"
-
-#include "stream_control.h"
-#include "input_ext-dec.h"
 
 #include "video.h"
 #include "video_output.h"
index 4840b4dedc60cb1bb5306f8db70b71564372ceee..90b308207d823a25a411c485f0b6130c9044bc26 100644 (file)
@@ -2,7 +2,7 @@
  * idct_common.c : common IDCT functions
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: idct_common.c,v 1.1 2001/01/13 12:57:20 sam Exp $
+ * $Id: idct_common.c,v 1.2 2001/01/15 06:18:23 sam Exp $
  *
  * Authors: Gaël Hendryckx <jimmy@via.ecp.fr>
  *
  *****************************************************************************/
 #include "defs.h"
 
-#include <stdlib.h>
-
 #include "config.h"
 #include "common.h"
 #include "threads.h"
 #include "mtime.h"
-#include "plugins.h"
-
-#include "intf_msg.h"
-
-#include "stream_control.h"
-#include "input_ext-dec.h"
 
 #include "video.h"
 #include "video_output.h"
index d70c76398c0a5579f8a93c0d7a846f3db0fa07ec..d9e3d877094ce7cd1cd2fc330d3ab3d83e0f1b9d 100644 (file)
@@ -2,7 +2,7 @@
  * idctclassic.c : Classic IDCT module
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: idctclassic.c,v 1.1 2001/01/13 12:57:20 sam Exp $
+ * $Id: idctclassic.c,v 1.2 2001/01/15 06:18:23 sam Exp $
  *
  * Authors: Gaël Hendryckx <jimmy@via.ecp.fr>
  *
 #include "common.h"
 #include "threads.h"
 #include "mtime.h"
-#include "plugins.h"
-
-#include "intf_msg.h"
-
-#include "stream_control.h"
-#include "input_ext-dec.h"
 
 #include "video.h"
 #include "video_output.h"
index 0a1eb17b3bcfbfdca7a80763bd5ac212ed487da5..6552e33f591e8d5a001c5e3a3c556c1aa68f7056 100644 (file)
@@ -2,7 +2,7 @@
  * idctmmx.c : MMX IDCT module
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: idctmmx.c,v 1.1 2001/01/13 12:57:20 sam Exp $
+ * $Id: idctmmx.c,v 1.2 2001/01/15 06:18:23 sam Exp $
  *
  * Authors: Gaël Hendryckx <jimmy@via.ecp.fr>
  *
 #include "common.h"
 #include "threads.h"
 #include "mtime.h"
-#include "plugins.h"
-
-#include "intf_msg.h"
-
-#include "stream_control.h"
-#include "input_ext-dec.h"
 
 #include "video.h"
 #include "video_output.h"
index 1ebc7696e67a0369e33d6f3547869f281d6fd05c..1c6172e4fa962f66c5cbd2734b4aa374bd15e18a 100644 (file)
@@ -2,7 +2,7 @@
  * intf_mga.c: MGA interface
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: intf_mga.c,v 1.6 2001/01/05 18:46:43 massiot Exp $
+ * $Id: intf_mga.c,v 1.7 2001/01/15 06:18:23 sam Exp $
  *
  * Authors:
  *
@@ -249,7 +249,7 @@ static int X11CreateWindow( intf_thread_t *p_intf )
                              &p_intf->p_sys->wm_delete_window, 1 ) )
     {
         /* WM_DELETE_WINDOW is not supported by window manager */
-        intf_Msg("error: missing or bad window manager - please exit program kindly.");
+        intf_Msg("intf error: missing or bad window manager - please exit program kindly.");
     }
 
     /* Creation of a graphic context that doesn't generate a GraphicsExpose event
@@ -449,7 +449,7 @@ void X11EnableScreenSaver( intf_thread_t *p_intf )
 {
     if( p_intf->p_sys->i_ss_count++ == 0 )
     {
-        intf_Msg("Enabling screen saver");
+        intf_DbgMsg("intf: enabling screen saver");
         XSetScreenSaver( p_intf->p_sys->p_display, p_intf->p_sys->i_ss_timeout,
                          p_intf->p_sys->i_ss_interval, p_intf->p_sys->i_ss_blanking,
                          p_intf->p_sys->i_ss_exposure );
@@ -471,7 +471,7 @@ void X11DisableScreenSaver( intf_thread_t *p_intf )
                          &p_intf->p_sys->i_ss_exposure );
 
         /* Disable screen saver */
-        intf_Msg("Disabling screen saver");
+        intf_DbgMsg("intf: disabling screen saver");
         XSetScreenSaver( p_intf->p_sys->p_display, 0,
                          p_intf->p_sys->i_ss_interval, p_intf->p_sys->i_ss_blanking,
                          p_intf->p_sys->i_ss_exposure );
index e309fbf658d2ec15e7478e2a39b5538ff8682be9..efc1e37ce58251f486e340a9adf1dd0922203f0c 100644 (file)
@@ -133,13 +133,13 @@ int vout_MGAInit( vout_thread_t *p_vout )
 
     if (p_vout->p_sys->p_mga->card_type == MGA_G200)
     {
-        intf_Msg( "detected MGA G200 (%d MB Ram)",
+        intf_Msg( "vout: detected MGA G200 (%d MB Ram)",
                   p_vout->p_sys->p_mga->ram_size );
         p_vout->p_sys->b_g400 = 0;
     }
     else
     {
-        intf_Msg( "detected MGA G400 (%d MB Ram)",
+        intf_Msg( "vout: detected MGA G400 (%d MB Ram)",
                   p_vout->p_sys->p_mga->ram_size );
         p_vout->p_sys->b_g400 = 1;
     }
@@ -180,7 +180,7 @@ int vout_MGAInit( vout_thread_t *p_vout )
         }
         if( i_err )                                      /* an error occured */
         {
-            intf_Msg("XShm video sextension deactivated" );
+            intf_Msg("vout: XShm video sextension deactivated" );
             p_vout->p_sys->b_shm = 0;
         }
     }
@@ -292,7 +292,7 @@ int vout_MGAManage( vout_thread_t *p_vout )
         /* Tell the video output thread that it will need to rebuild YUV
          * tables. This is needed since convertion buffer size may have changed */
         p_vout->i_changes |= VOUT_YUV_CHANGE;
-        intf_Msg("Video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
+        intf_Msg("vout: video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
     }
 
     return 0;
@@ -360,7 +360,7 @@ static int X11OpenDisplay( vout_thread_t *p_vout, char *psz_display, Window root
     p_vout->p_sys->i_screen     = DefaultScreen( p_vout->p_sys->p_display );
     if( !p_vout->p_sys->b_shm )
     {
-        intf_Msg("XShm video extension is not available");
+        intf_Msg("vout: XShm video extension is not available");
     }
 
     /* Get screen depth */
index e13853eb3b1efc34d39357efb5738b82a26e5bf2..e1124962bf8aab93c459274cbd404b0587a63c78 100644 (file)
@@ -2,7 +2,7 @@
  * intf_sdl.c: SDL interface plugin
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: intf_sdl.c,v 1.21 2001/01/08 22:42:50 bozo Exp $
+ * $Id: intf_sdl.c,v 1.22 2001/01/15 06:18:23 sam Exp $
  *
  * Authors:
  *
@@ -166,7 +166,7 @@ void intf_SDLManage( intf_thread_t *p_intf )
 
 void intf_SDL_Resize( intf_thread_t * p_intf, int width, int height )
 {
-    intf_Msg( "Video display resized (%dx%d)", width, height ); 
+    intf_Msg( "intf: video display resized (%dx%d)", width, height ); 
     vlc_mutex_lock( &p_intf->p_vout->change_lock );
     p_intf->p_vout->p_sys->i_width = width;
     p_intf->p_vout->p_sys->i_height = height;
index 48ac936f968c4c1877eb59bceb1d89ee3e4779ca..ccc17de36defe30518f944c63d723270f464cb90 100644 (file)
@@ -249,7 +249,7 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
                                              SDL_YV12_OVERLAY, 
                                              p_vout->p_sys->p_display
                                            );
-                intf_Msg("[YUV acceleration] : %d,",
+                intf_Msg("vout: YUV acceleration set to %d,",
                             p_vout->p_sys->p_overlay->hw_overlay); 
             }
 
index 6fda1ce042bc549fb31b2cc6b6b8417592b28cb6..01412311fe68a58c3344faf546efcac9bd94e3fd 100644 (file)
@@ -2,7 +2,7 @@
  * intf_x11.c: X11 interface
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: intf_x11.c,v 1.6 2001/01/05 18:46:44 massiot Exp $
+ * $Id: intf_x11.c,v 1.7 2001/01/15 06:18:23 sam Exp $
  *
  * Authors:
  *
@@ -256,7 +256,7 @@ static int X11CreateWindow( intf_thread_t *p_intf )
                              &p_intf->p_sys->wm_delete_window, 1 ) )
     {
         /* WM_DELETE_WINDOW is not supported by window manager */
-        intf_Msg("error: missing or bad window manager - please exit program kindly.");
+        intf_Msg("intf error: missing or bad window manager - please exit program kindly.");
     }
 
     /* Creation of a graphic context that doesn't generate a GraphicsExpose
@@ -475,7 +475,7 @@ void X11EnableScreenSaver( intf_thread_t *p_intf )
 {
     if( p_intf->p_sys->i_ss_count++ == 0 )
     {
-        intf_Msg( "Enabling screen saver" );
+        intf_DbgMsg( "intf: enabling screen saver" );
         XSetScreenSaver( p_intf->p_sys->p_display, p_intf->p_sys->i_ss_timeout,
                          p_intf->p_sys->i_ss_interval, p_intf->p_sys->i_ss_blanking,
                          p_intf->p_sys->i_ss_exposure );
@@ -497,7 +497,7 @@ void X11DisableScreenSaver( intf_thread_t *p_intf )
                          &p_intf->p_sys->i_ss_exposure );
 
         /* Disable screen saver */
-        intf_Msg("Disabling screen saver");
+        intf_DbgMsg("intf: disabling screen saver");
         XSetScreenSaver( p_intf->p_sys->p_display, 0,
                          p_intf->p_sys->i_ss_interval, p_intf->p_sys->i_ss_blanking,
                          p_intf->p_sys->i_ss_exposure );
index 2a217147de4a771ad7853419078f1b9f22cafb03..23e898080d77dbd60ee20ee2c897698cad28e2fd 100644 (file)
@@ -2,7 +2,7 @@
  * vout_x11.c: X11 video output display method
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vout_x11.c,v 1.7 2001/01/05 18:46:44 massiot Exp $
+ * $Id: vout_x11.c,v 1.8 2001/01/15 06:18:23 sam Exp $
  *
  * Authors:
  *
@@ -156,7 +156,7 @@ int vout_X11Init( vout_thread_t *p_vout )
         }
         if( i_err )                                      /* an error occured */
         {
-            intf_Msg("XShm video sextension deactivated" );
+            intf_Msg("vout: XShm video sextension deactivated" );
             p_vout->p_sys->b_shm = 0;
         }
     }
@@ -265,7 +265,7 @@ int vout_X11Manage( vout_thread_t *p_vout )
          * tables. This is needed since conversion buffer size may have
          * changed */
         p_vout->i_changes |= VOUT_YUV_CHANGE;
-        intf_Msg("Video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
+        intf_Msg("vout: video display resized (%dx%d)", p_vout->i_width, p_vout->i_height);
     }
 
     return 0;
@@ -364,7 +364,7 @@ static int X11OpenDisplay( vout_thread_t *p_vout, char *psz_display, Window root
     p_vout->p_sys->i_screen     = DefaultScreen( p_vout->p_sys->p_display );
     if( !p_vout->p_sys->b_shm )
     {
-        intf_Msg("XShm video extension is not available");
+        intf_Msg("vout: XShm video extension is not available");
     }
 
     /* Get screen depth */
index 8b7d5849dbafb7c547c4ef2322f71e2d231bfbdc..a5cecfbd232afb83b51277db5c03fe87ffbb171e 100644 (file)
@@ -4,7 +4,7 @@
  * decoders.
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: input.c,v 1.68 2001/01/14 07:08:00 stef Exp $
+ * $Id: input.c,v 1.69 2001/01/15 06:18:23 sam Exp $
  *
  * Authors: 
  *
@@ -394,7 +394,7 @@ static void FileOpen( input_thread_t * p_input )
     p_input->stream.i_tell = 0;
     vlc_mutex_unlock( &p_input->stream.stream_lock );
 
-    intf_Msg( "Opening file %s", p_config->p_source );
+    intf_Msg( "input: opening file %s", p_config->p_source );
     if( (p_input->i_handle = open( p_config->p_source,
                                    /*O_NONBLOCK | O_LARGEFILE*/0 )) == (-1) )
     {
@@ -411,7 +411,7 @@ static void FileOpen( input_thread_t * p_input )
  *****************************************************************************/
 static void DvdOpen( input_thread_t * p_input )
 {
-    intf_Msg( "Opening DVD %s", p_input->p_config->p_source );
+    intf_Msg( "input: opening DVD %s", p_input->p_config->p_source );
     if( (p_input->i_handle = open( p_input->p_config->p_source,
                                    O_RDONLY|O_LARGEFILE )) == (-1) )
     {
index 32edd5d432df8cf8c40d86b1957e0d3b7f9d1e4a..21869771f55eaa8ab2b6e3c5cf8d0734a4aecd12 100644 (file)
@@ -2,7 +2,7 @@
  * input.h: structures of the input not exported to other modules
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: input.h,v 1.7 2001/01/10 19:22:11 massiot Exp $
+ * $Id: input.h,v 1.8 2001/01/15 06:18:23 sam Exp $
  *
  * Authors:
  *
@@ -117,6 +117,11 @@ static __inline__ void input_NullPacket( input_thread_t * p_input,
         p_input->b_error = 1;
         return;
     }
+
+    /* XXX FIXME SARASS TODO: remove the following one-liner kludge when
+     * we have bitstream IV, we won't need it anymore */
+    ((WORD_TYPE *)p_bit_stream->p_byte)++;
+
     memset( p_pad_data->p_buffer, 0, PADDING_PACKET_SIZE );
     p_pad_data->b_discard_payload = 1;
     p_pes = p_es->p_pes;
index c6be01e6b2414f8cbda33e8a2c4a4a7359394aeb..f8fe914ce939027f3d6daace5edeaf3a6c7dd8b4 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.6 2001/01/12 17:33:18 massiot Exp $
+ * $Id: input_dec.c,v 1.7 2001/01/15 06:18:23 sam Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -53,10 +53,17 @@ vlc_thread_t input_RunDecoder( decoder_capabilities_t * p_decoder,
  *****************************************************************************/
 void input_EndDecoder( input_thread_t * p_input, es_descriptor_t * p_es )
 {
+    int i_dummy;
+
     p_es->p_decoder_fifo->b_die = 1;
 
-    /* Make sure the thread leaves the NextDataPacket() function */
-    input_NullPacket( p_input, p_es );
+    /* Make sure the thread leaves the NextDataPacket() function by
+     * sending it a few null packets. */
+    for( i_dummy = 0; i_dummy < 10; i_dummy++ )
+    {
+        input_NullPacket( p_input, p_es );
+    }
+
     if( p_es->p_pes != NULL )
     {
         input_DecodePES( p_es->p_decoder_fifo, p_es->p_pes );
index 01289d2d45639883539400c49a3224b2b4bd759e..4e9a91ee692b53f9843e06551a9da2fb158c8a8d 100644 (file)
@@ -167,7 +167,7 @@ intf_thread_t* intf_Create( void )
         return( NULL );
     }
 
-    intf_Msg("Interface initialized");
+    intf_Msg("intf: interface initialized");
     return( p_intf );
 }
 
index a32976ec69336eeb5a05089faa044b7a959d16dc..27f44de4af751b9a96ac66e426eb3aeacd748213 100644 (file)
@@ -235,7 +235,7 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
     p_main->p_playlist = playlist_Create( );
     if( !p_main->p_playlist )
     {
-        intf_Msg( "Playlist initialization failed" );
+        intf_ErrMsg( "playlist error: playlist initialization failed" );
         intf_MsgDestroy();
         return( errno );
     }
@@ -247,7 +247,7 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
     p_main->p_bank = bank_Create( );
     if( !p_main->p_bank )
     {
-        intf_Msg( "Plugin bank initialization failed" );
+        intf_ErrMsg( "plugin error: plugin bank initialization failed" );
         playlist_Destroy( p_main->p_playlist );
         intf_MsgDestroy();
         return( errno );
@@ -260,7 +260,7 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
     p_main->p_module_bank = module_CreateBank( );
     if( !p_main->p_module_bank )
     {
-        intf_Msg( "Module bank initialization failed" );
+        intf_ErrMsg( "module error: module bank initialization failed" );
         bank_Destroy( p_main->p_bank );
         playlist_Destroy( p_main->p_playlist );
         intf_MsgDestroy();
@@ -291,7 +291,7 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
         if( p_main->p_aout == NULL )
         {
             /* On error during audio initialization, switch off audio */
-            intf_Msg( "Audio initialization failed : audio is deactivated" );
+            intf_ErrMsg( "aout error: audio initialization failed, audio is deactivated" );
             p_main->b_audio = 0;
         }
     }
@@ -354,7 +354,7 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
     /*
      * Terminate messages interface and program
      */
-    intf_Msg( "Program terminated." );
+    intf_Msg( "intf: program terminated." );
     intf_MsgDestroy();
 
     return( 0 );
index 34369089760964a3742b2d65594be4233ea209f8..47a6a506da4827fabd2e7404cce5a51e0a364d2f 100644 (file)
@@ -308,6 +308,8 @@ module_t * module_Need( module_bank_t *p_bank,
     /* We release the global lock */
     vlc_mutex_unlock( &p_bank->lock );
 
+    intf_Msg( "module: locking module `%s'", p_bestmodule->psz_name );
+
     /* Don't forget that the module is still locked if bestmodule != NULL */
     return( p_bestmodule );
 }
@@ -327,6 +329,8 @@ void module_Unneed( module_bank_t * p_bank, module_t * p_module )
      * so there is no need to check the return value. */
     UnlockModule( p_module );
 
+    intf_Msg( "module: unlocking module `%s'", p_module->psz_name );
+
     /* We release the global lock */
     vlc_mutex_unlock( &p_bank->lock );
 
index 35c1fbc7df34db22950a686c9e59c58494bbaa0b..f729406b711120eea81b5a5e0228cd981c278569 100644 (file)
@@ -54,7 +54,7 @@ playlist_t * playlist_Create ( void )
     p_playlist->i_index = 0;
     p_playlist->p_list = NULL;
 
-    intf_Msg("Playlist created");
+    intf_Msg("playlist: playlist created");
     return( p_playlist );
 }
 
index bef0f3ac581677e2f243f1791d53194661a46ed3..908934e37c8da21ac4eb1ef0aae9c6cf8e3a2b6a 100644 (file)
@@ -65,7 +65,7 @@ plugin_bank_t * bank_Create( void )
     p_bank = malloc( sizeof( plugin_bank_t ) );
     if( !p_bank )
     {
-        intf_ErrMsg("plugin bank error: %s", strerror( ENOMEM ) );
+        intf_ErrMsg("plugin error: failed to create bank (%s)", strerror( ENOMEM ) );
         return( NULL );
     }
 
@@ -76,7 +76,7 @@ plugin_bank_t * bank_Create( void )
     }
     p_bank->i_plugin_count = MAX_PLUGIN_COUNT;
 
-    intf_Msg("Plugin bank initialized");
+    intf_Msg("plugin: bank initialized");
     return( p_bank );
 }
 
@@ -108,11 +108,6 @@ void bank_Init( plugin_bank_t * p_bank )
     SEEK_PLUGIN( "yuvmmx" );
     SEEK_PLUGIN( "yuv" );
 
-    /* Audio pluins */
-    SEEK_PLUGIN( "dsp" );
-    SEEK_PLUGIN( "esd" );
-    SEEK_PLUGIN( "alsa" );
-    
     /* Dummy plugin */
     SEEK_PLUGIN( "dummy" );
 
@@ -239,7 +234,7 @@ int AllocatePlugin( plugin_id_t plugin_id, plugin_bank_t * p_bank,
 
 
     /* Tell the world we found it */
-    intf_Msg( "Plugin %i: %s %s [0x%x]", i,
+    intf_Msg( "plugin: #%i, %s %s (score 0x%x)", i,
               p_bank->p_info[ i ]->psz_name,
               p_bank->p_info[ i ]->psz_version,
               p_bank->p_info[ i ]->i_score );
index ceaf93097c452897c89bbc2da71e613174bca1e5..0868b6b02ad09ce42b7c4f83cb0a6d7a2d3f36fc 100644 (file)
@@ -269,8 +269,8 @@ vout_thread_t * vout_CreateThread   ( char *psz_display, int i_root_window,
         return( NULL );
     }
 
-    intf_Msg( "Video display initialized (%dx%d, %d/%d bpp)", p_vout->i_width,
-              p_vout->i_height, p_vout->i_screen_depth,
+    intf_Msg( "vout: video display initialized (%dx%d, %d/%d bpp)",
+              p_vout->i_width, p_vout->i_height, p_vout->i_screen_depth,
               p_vout->i_bytes_per_pixel * 8 );
 
     /* If status is NULL, wait until the thread is created */