Commit 211d6bad authored by Sam Hocevar's avatar Sam Hocevar

* ./src/video_output/video_output.c: fixed the "picture has invalid status"

    bug which might have been the cause of crashes.
  * ./plugins/filter/crop.c: attempt at an automatic border cropping filter,
    using "--filter crop --autocrop".
  * ./vlc.spec: added missing filters to the RPM generation.
  * ./src/misc/objects.c: commented all functions.
  * ./src/misc/objects.c: implemented vlc_object_find( , , FIND_ANYWHERE).
  * ./src/misc/objects.c: renamed vlc_object_unlink to vlc_object_detach.
parent 91eb944b
......@@ -4,6 +4,10 @@
HEAD
* ./src/misc/objects.c: commented all functions.
* ./src/misc/objects.c: implemented vlc_object_find( , , FIND_ANYWHERE).
* ./src/misc/objects.c: renamed vlc_object_unlink to vlc_object_detach.
* ALL: got rid of p_object->p_this which is now useless.
* ./include/main.h, ./plugins/beos/intf_beos.cpp: BeOS compilation fixes.
* ./bootstrap.sh, ./src/libvlc.h, ./po/*: fixed bootstrap.sh so that it does
not include CVS Id lines in automatically created files.
......@@ -27,6 +31,19 @@ HEAD
0.4.1
* ./src/video_output/video_output.c: fixed the "picture has invalid status"
bug which might have been the cause of crashes.
* ./plugins/filter/crop.c: attempt at an automatic border cropping filter,
using "--filter crop --autocrop".
* ./vlc.spec: added missing filters to the RPM generation.
* ./plugins/macosx/*: channel change support on Mac OS X.
* ./extras/MacOSX/Resources/vlc.icns: new OS X icon, courtesy of Benjamin
Mironer <bmironer@noos.fr>.
* ./plugins/filter/crop.c: crop filter. Usage examples:
--filter crop --crop-geometry 640x480
--filter crop --crop-geometry 320x200+10+10
* ./plugins/macosx/intf_vlc_wrapper.m: fixed a bug in the chapter handling.
* ./plugins/macosx/vout_vlc_wrapper.m: more keystrokes.
* ./plugins/chroma/i420_yuy2.h: simplified the chroma code. Please test
under BeOS and QNX.
* ./plugins/macosx/intf_vlc_wrapper.m: fix for non-ASCII filenames in the
......
......@@ -97,6 +97,7 @@ PLUGINS_TARGETS := a52/a52 \
fb/fb \
ffmpeg/ffmpeg \
filter/filter_clone \
filter/filter_crop \
filter/filter_deinterlace \
filter/filter_distort \
filter/filter_invert \
......
......@@ -5472,7 +5472,7 @@ case x"${target_cpu}" in
esac
BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga"
PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga"
MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
......
......@@ -413,7 +413,7 @@ dnl
dnl default modules
dnl
BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga"
PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga"
dnl
dnl Accelerated modules
......
......@@ -267,3 +267,6 @@
/* Maximal size of the message queue - in case of overflow, all messages in the
* queue are printed, but not sent to the threads */
#define VLC_MSG_QSIZE 256
/* Maximal depth of the object tree output by vlc_dumpstructure */
#define MAX_DUMPSTRUCTURE_DEPTH 100
......@@ -2,7 +2,7 @@
* vlc_objects.h: vlc_object_t definition.
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: vlc_objects.h,v 1.1 2002/06/01 12:31:58 sam Exp $
* $Id: vlc_objects.h,v 1.2 2002/06/02 09:03:53 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -47,8 +47,8 @@ VLC_EXPORT( void, __vlc_object_destroy, ( vlc_object_t * ) );
VLC_EXPORT( void *, __vlc_object_find, ( vlc_object_t *, int, int ) );
VLC_EXPORT( void, __vlc_object_yield, ( vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_release, ( vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_unlink, ( vlc_object_t *, vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_unlink_all, ( vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_detach, ( vlc_object_t *, vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_detach_all, ( vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_attach, ( vlc_object_t *, vlc_object_t * ) );
#if 0
//VLC_EXPORT( void, __vlc_object_setchild, ( vlc_object_t *, vlc_object_t * ) );
......@@ -71,11 +71,11 @@ VLC_EXPORT( void, __vlc_dumpstructure, ( vlc_object_t * ) );
#define vlc_object_release(a) \
__vlc_object_release( CAST_TO_VLC_OBJECT(a) )
#define vlc_object_unlink(a,b) \
__vlc_object_unlink( CAST_TO_VLC_OBJECT(a), CAST_TO_VLC_OBJECT(b) )
#define vlc_object_detach(a,b) \
__vlc_object_detach( CAST_TO_VLC_OBJECT(a), CAST_TO_VLC_OBJECT(b) )
#define vlc_object_unlink_all(a) \
__vlc_object_unlink_all( CAST_TO_VLC_OBJECT(a) )
#define vlc_object_detach_all(a) \
__vlc_object_detach_all( CAST_TO_VLC_OBJECT(a) )
#define vlc_object_attach(a,b) \
__vlc_object_attach( CAST_TO_VLC_OBJECT(a), CAST_TO_VLC_OBJECT(b) )
......
......@@ -129,8 +129,8 @@ struct module_symbols_s
void * (* __vlc_object_find_inner) ( vlc_object_t *, int, int ) ;
void (* __vlc_object_yield_inner) ( vlc_object_t * ) ;
void (* __vlc_object_release_inner) ( vlc_object_t * ) ;
void (* __vlc_object_unlink_inner) ( vlc_object_t *, vlc_object_t * ) ;
void (* __vlc_object_unlink_all_inner) ( vlc_object_t * ) ;
void (* __vlc_object_detach_inner) ( vlc_object_t *, vlc_object_t * ) ;
void (* __vlc_object_detach_all_inner) ( vlc_object_t * ) ;
void (* __vlc_object_attach_inner) ( vlc_object_t *, vlc_object_t * ) ;
void (* __vlc_dumpstructure_inner) ( vlc_object_t * ) ;
};
......@@ -263,8 +263,8 @@ struct module_symbols_s
# define __vlc_object_find p_symbols->__vlc_object_find_inner
# define __vlc_object_yield p_symbols->__vlc_object_yield_inner
# define __vlc_object_release p_symbols->__vlc_object_release_inner
# define __vlc_object_unlink p_symbols->__vlc_object_unlink_inner
# define __vlc_object_unlink_all p_symbols->__vlc_object_unlink_all_inner
# define __vlc_object_detach p_symbols->__vlc_object_detach_inner
# define __vlc_object_detach_all p_symbols->__vlc_object_detach_all_inner
# define __vlc_object_attach p_symbols->__vlc_object_attach_inner
# define __vlc_dumpstructure p_symbols->__vlc_dumpstructure_inner
#endif /* __PLUGIN__ */
......
......@@ -2,7 +2,7 @@
* vout_aa.c: Aa video output display method for testing purposes
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: aa.c,v 1.5 2002/06/01 12:31:58 sam Exp $
* $Id: aa.c,v 1.6 2002/06/02 09:03:53 sam Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
......@@ -220,8 +220,7 @@ static int vout_Manage( vout_thread_t *p_vout )
if ( b & AA_BUTTON3 )
{
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_vout->p_vlc, VLC_OBJECT_INTF,
FIND_CHILD );
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF, FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
......
......@@ -2,7 +2,7 @@
* aout_directx.c: Windows DirectX audio output method
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: aout_directx.c,v 1.23 2002/06/01 16:45:34 sam Exp $
* $Id: aout_directx.c,v 1.24 2002/06/02 09:03:54 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -435,7 +435,7 @@ static void aout_Close( aout_thread_t *p_aout )
msg_Dbg( p_aout, "aout_Close" );
/* kill the position notification thread, if any */
vlc_object_unlink_all( p_aout->p_sys->p_notif );
vlc_object_detach_all( p_aout->p_sys->p_notif );
if( p_aout->p_sys->p_notif->b_thread )
{
p_aout->p_sys->p_notif->b_die = 1;
......
......@@ -2,7 +2,7 @@
* vout_directx.c: Windows DirectX video output display method
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: vout_directx.c,v 1.38 2002/06/01 16:45:34 sam Exp $
* $Id: vout_directx.c,v 1.39 2002/06/02 09:03:54 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -245,7 +245,7 @@ static void vout_Destroy( vout_thread_t *p_vout )
DirectXCloseDisplay( p_vout );
DirectXCloseDDraw( p_vout );
vlc_object_unlink_all( p_vout->p_sys->p_event );
vlc_object_detach_all( p_vout->p_sys->p_event );
/* Kill DirectXEventThread */
p_vout->p_sys->p_event->b_die = 1;
......
......@@ -2,7 +2,7 @@
* vout_events.c: Windows DirectX video output events handler
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: vout_events.c,v 1.21 2002/06/01 18:04:48 sam Exp $
* $Id: vout_events.c,v 1.22 2002/06/02 09:03:54 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -116,8 +116,8 @@ void DirectXEventThread( event_thread_t *p_event )
case WM_RBUTTONUP:
{
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_event->p_vlc, VLC_OBJECT_INTF,
FIND_CHILD );
p_intf = vlc_object_find( p_event, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
......
......@@ -4,3 +4,4 @@ filter_invert_SOURCES = invert.c
filter_distort_SOURCES = distort.c
filter_wall_SOURCES = wall.c
filter_clone_SOURCES = clone.c
filter_crop_SOURCES = crop.c
This diff is collapsed.
......@@ -2,7 +2,7 @@
* ggi.c : GGI plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: ggi.c,v 1.21 2002/06/01 12:31:59 sam Exp $
* $Id: ggi.c,v 1.22 2002/06/02 09:03:54 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
......@@ -325,8 +325,8 @@ int vout_Manage( vout_thread_t *p_vout )
case GII_PBUTTON_RIGHT:
{
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_vout->p_vlc,
VLC_OBJECT_INTF, FIND_CHILD );
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
......
......@@ -2,7 +2,7 @@
* gnome.c : Gnome plugin for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* $Id: gnome.c,v 1.25 2002/06/01 18:04:48 sam Exp $
* $Id: gnome.c,v 1.26 2002/06/02 09:03:54 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -421,8 +421,8 @@ static gint GnomeManage( gpointer p_data )
if( p_intf->p_sys->p_input == NULL )
{
p_intf->p_sys->p_input = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_INPUT, FIND_CHILD );
p_intf->p_sys->p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT,
FIND_ANYWHERE );
}
if( p_intf->p_sys->p_input )
......
......@@ -2,7 +2,7 @@
* gtk.c : Gtk+ plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: gtk.c,v 1.25 2002/06/01 18:04:48 sam Exp $
* $Id: gtk.c,v 1.26 2002/06/02 09:03:54 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -407,8 +407,8 @@ static gint GtkManage( gpointer p_data )
if( p_intf->p_sys->p_input == NULL )
{
p_intf->p_sys->p_input = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_INPUT, FIND_CHILD );
p_intf->p_sys->p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT,
FIND_ANYWHERE );
}
if( p_intf->p_sys->p_input )
......
......@@ -2,7 +2,7 @@
* gtk_control.c : functions to handle stream control buttons.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_control.c,v 1.10 2002/06/01 12:31:59 sam Exp $
* $Id: gtk_control.c,v 1.11 2002/06/02 09:03:54 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
......@@ -66,8 +66,7 @@ gboolean GtkControlStop( GtkWidget *widget,
intf_thread_t *p_intf = GetIntf( GTK_WIDGET(widget), (char*)user_data );
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist )
{
......@@ -86,8 +85,7 @@ gboolean GtkControlPlay( GtkWidget *widget,
intf_thread_t *p_intf = GetIntf( GTK_WIDGET(widget), (char*)user_data );
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist )
{
......@@ -113,8 +111,7 @@ gboolean GtkControlPause( GtkWidget *widget,
intf_thread_t *p_intf = GetIntf( GTK_WIDGET(widget), (char*)user_data );
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist )
{
......@@ -133,8 +130,7 @@ gboolean GtkControlSlow( GtkWidget *widget,
intf_thread_t *p_intf = GetIntf( GTK_WIDGET(widget), (char*)user_data );
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
#if 0
if( p_playlist )
......@@ -155,8 +151,7 @@ gboolean GtkControlFast( GtkWidget *widget,
intf_thread_t *p_intf = GetIntf( GTK_WIDGET(widget), (char*)user_data );
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
#if 0
if( p_playlist )
......
......@@ -2,7 +2,7 @@
* gtk_display.c: Gtk+ tools for main interface
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: gtk_display.c,v 1.23 2002/06/01 12:31:59 sam Exp $
* $Id: gtk_display.c,v 1.24 2002/06/02 09:03:54 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
......@@ -240,8 +240,8 @@ gint GtkModeManage( intf_thread_t * p_intf )
*****************************************************************************/
void GtkHideTooltips( vlc_object_t *p_this )
{
intf_thread_t *p_intf = vlc_object_find( p_this->p_vlc,
VLC_OBJECT_INTF, FIND_CHILD );
intf_thread_t *p_intf = vlc_object_find( p_this, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( !p_intf )
{
......@@ -272,8 +272,8 @@ void GtkHideToolbarText( vlc_object_t *p_this )
GtkToolbarStyle style;
GtkToolbar * p_toolbar;
intf_thread_t *p_intf = vlc_object_find( p_this->p_vlc,
VLC_OBJECT_INTF, FIND_CHILD );
intf_thread_t *p_intf = vlc_object_find( p_this, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( !p_intf )
{
......
......@@ -2,7 +2,7 @@
* gtk_open.c : functions to handle file/disc/network open widgets.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_open.c,v 1.26 2002/06/01 18:04:48 sam Exp $
* $Id: gtk_open.c,v 1.27 2002/06/02 09:03:54 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
......@@ -93,8 +93,7 @@ void GtkFileOpenOk( GtkButton * button, gpointer user_data )
GtkWidget * p_filesel;
gchar * psz_filename;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist == NULL )
{
return;
......@@ -192,8 +191,7 @@ void GtkDiscOpenOk( GtkButton * button, gpointer user_data )
char * psz_device, *psz_source, *psz_method;
int i_title, i_chapter;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist == NULL )
{
return;
......@@ -326,8 +324,7 @@ void GtkNetworkOpenOk( GtkButton *button, gpointer user_data )
unsigned int i_port;
vlc_bool_t b_channel;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist == NULL )
{
return;
......@@ -624,8 +621,7 @@ void GtkSatOpenOk( GtkButton * button, gpointer user_data )
int i_fec;
vlc_bool_t b_pol;
p_playlist = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_PLAYLIST, FIND_CHILD );
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist == NULL )
{
return;
......
......@@ -2,7 +2,7 @@
* video_parser.c : video parser thread
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video_parser.c,v 1.22 2002/06/01 13:52:24 sam Exp $
* $Id: video_parser.c,v 1.23 2002/06/02 09:03:54 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
......@@ -327,7 +327,7 @@ static void EndThread( vpar_thread_t *p_vpar )
}
/* We are about to die. Reattach video output to p_vlc. */
vlc_object_unlink( p_vpar->p_vout, p_vpar->p_fifo );
vlc_object_detach( p_vpar->p_vout, p_vpar->p_fifo );
vlc_object_attach( p_vpar->p_vout, p_vpar->p_fifo->p_vlc );
msg_Dbg( p_vpar->p_fifo, "%d loops among %d sequence(s)",
......
......@@ -2,7 +2,7 @@
* vpar_headers.c : headers parsing
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: vpar_headers.c,v 1.25 2002/06/01 18:04:49 sam Exp $
* $Id: vpar_headers.c,v 1.26 2002/06/02 09:03:54 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
......@@ -488,8 +488,8 @@ static void SequenceHeader( vpar_thread_t * p_vpar )
/* Spawn a video output if there is none */
p_vpar->p_vout = vlc_object_find( p_vpar->p_fifo->p_vlc, VLC_OBJECT_VOUT,
FIND_CHILD );
p_vpar->p_vout = vlc_object_find( p_vpar->p_fifo, VLC_OBJECT_VOUT,
FIND_ANYWHERE );
if( p_vpar->p_vout )
{
......@@ -499,7 +499,7 @@ static void SequenceHeader( vpar_thread_t * p_vpar )
|| p_vpar->p_vout->render.i_aspect != p_vpar->sequence.i_aspect )
{
/* We are not interested in this format, close this vout */
vlc_object_unlink_all( p_vpar->p_vout );
vlc_object_detach_all( p_vpar->p_vout );
vlc_object_release( p_vpar->p_vout );
vout_DestroyThread( p_vpar->p_vout );
p_vpar->p_vout = NULL;
......@@ -507,7 +507,7 @@ static void SequenceHeader( vpar_thread_t * p_vpar )
else
{
/* This video output is cool! Hijack it. */
vlc_object_unlink_all( p_vpar->p_vout );
vlc_object_detach_all( p_vpar->p_vout );
vlc_object_attach( p_vpar->p_vout, p_vpar->p_fifo );
vlc_object_release( p_vpar->p_vout );
}
......
......@@ -2,7 +2,7 @@
* vpar_pool.c : management of the pool of decoder threads
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: vpar_pool.c,v 1.10 2002/06/01 13:52:24 sam Exp $
* $Id: vpar_pool.c,v 1.11 2002/06/02 09:03:54 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
......@@ -125,7 +125,7 @@ void vpar_SpawnPool( vpar_thread_t * p_vpar )
{
int j;
vlc_object_unlink_all( p_vpar->pool.pp_vdec[i] );
vlc_object_detach_all( p_vpar->pool.pp_vdec[i] );
vdec_DestroyThread( p_vpar->pool.pp_vdec[i] );
for( j = 0; j < 12; j++ )
......@@ -218,7 +218,7 @@ void vpar_EndPool( vpar_thread_t * p_vpar )
{
int j;
vlc_object_unlink_all( p_vpar->pool.pp_vdec[i] );
vlc_object_detach_all( p_vpar->pool.pp_vdec[i] );
vdec_DestroyThread( p_vpar->pool.pp_vdec[i] );
for( j = 0; j < 12; j++ )
......@@ -235,7 +235,7 @@ void vpar_EndPool( vpar_thread_t * p_vpar )
}
/* Free fake video decoder (used when parser == decoder). */
vlc_object_unlink_all( p_vpar->pool.p_vdec );
vlc_object_detach_all( p_vpar->pool.p_vdec );
vdec_EndThread( p_vpar->pool.p_vdec );
vlc_object_destroy( p_vpar->pool.p_vdec );
......
......@@ -2,7 +2,7 @@
* vout_sdl.c: SDL video output display method
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: vout_sdl.c,v 1.93 2002/06/01 18:04:49 sam Exp $
* $Id: vout_sdl.c,v 1.94 2002/06/02 09:03:54 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Pierre Baillet <oct@zoy.org>
......@@ -339,8 +339,8 @@ static int vout_Manage( vout_thread_t *p_vout )
case SDL_BUTTON_RIGHT:
{
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_vout->p_vlc, VLC_OBJECT_INTF,
FIND_CHILD );
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
......@@ -425,8 +425,8 @@ static int vout_Manage( vout_thread_t *p_vout )
case SDLK_MENU:
{
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_vout->p_vlc, VLC_OBJECT_INTF,
FIND_CHILD );
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
......
......@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.16 2002/06/01 18:04:49 sam Exp $
* $Id: rc.c,v 1.17 2002/06/02 09:03:54 sam Exp $
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
......@@ -187,8 +187,7 @@ static void intf_Run( intf_thread_t *p_intf )
}
/* Manage the input part */
p_input = vlc_object_find( p_intf->p_vlc,
VLC_OBJECT_INPUT, FIND_CHILD );
p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT, FIND_ANYWHERE );
if( p_input )
{
......
......@@ -2,7 +2,7 @@
* xcommon.c: Functions common to the X11 and XVideo plugins
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: xcommon.c,v 1.37 2002/06/01 18:04:49 sam Exp $
* $Id: xcommon.c,v 1.38 2002/06/02 09:03:54 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
......@@ -641,8 +641,8 @@ static int vout_Manage( vout_thread_t *p_vout )
case XK_Menu:
{
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_vout->p_vlc, VLC_OBJECT_INTF,
FIND_CHILD );
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
......@@ -753,8 +753,8 @@ static int vout_Manage( vout_thread_t *p_vout )
case Button3:
{
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_vout->p_vlc,
VLC_OBJECT_INTF, FIND_CHILD );
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
......
......@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: vlc 0.73.3\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: 2002-04-18 23:38+0100\n"
"Last-Translator: Thomas Graf <tgr@reeler.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
......@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: 2002-04-22 09:56+0200\n"
"Last-Translator: Samuel Hocevar <sam@zoy.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
......@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: 2001-12-10 13:32+0100\n"
"Last-Translator: Samuel Hocevar <sam@zoy.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -186,13 +186,12 @@ msgid "enable audio"
msgstr "activer l'audio"
#: src/libvlc.h:66
#, fuzzy
msgid ""
"You can completely disable the audio output. In this case the audio decoding "
"stage won't be done, and it will save some processing power."
msgstr ""
"Cette option dsactive compltement la sortie audio. Le dcodage des pistes "
"audio ne sera pas non plus fait, afin d'conomiser du temps processeur."
"audio ne sera pas effectu, afin d'conomiser du temps processeur."
#: src/libvlc.h:69
msgid "force mono audio"
......@@ -277,18 +276,16 @@ msgstr ""
"disponible."
#: src/libvlc.h:106
#, fuzzy
msgid "enable video"
msgstr "dsactiver la vido"
msgstr "activer la vido"
#: src/libvlc.h:108
#, fuzzy
msgid ""
"You can completely disable the video output. In this case the video decoding "
"stage won't be done, which will save some processing power."
msgstr ""
"Cette option dsactive compltement la sortie audio. Le dcodage des pistes "
"audio ne sera pas non plus fait, afin d'conomiser du temps processeur."
"Cette option dsactive compltement la sortie vido. Le dcodage des pistes "
"vido ne sera pas effectu, afin d'conomiser du temps processeur."
#: src/libvlc.h:111
msgid "display identifier"
......@@ -337,7 +334,6 @@ msgid "grayscale video output"
msgstr "sortie vido en niveaux de gris"
#: src/libvlc.h:132
#, fuzzy
msgid ""
"When enabled, the color information from the video won't be decoded (this "
"can also allow you to save some processing power)."
......@@ -357,12 +353,10 @@ msgstr ""
"plein cran."
#: src/libvlc.h:140
#, fuzzy
msgid "overlay video output"
msgstr "sortie vido en overlay"
#: src/libvlc.h:142
#, fuzzy
msgid ""
"If enabled, vlc will try to take advantage of the overlay capabilities of "
"you graphics card."
......
......@@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: 2002-04-02 03:22+0900\n"
"Last-Translator: Fumio Nakayama <endymion@ca2.so-net.ne.jp>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
......@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: 2002-04-20 16:58GMT\n"
"Last-Translator: Jean-Paul Saman <jpsaman@wxs.nl>\n"
"Language-Team: Nederlands <nl@li.org>\n"
......
......@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: vlc-cvs\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: 2002-28-02 23.35+0100\n"
"Last-Translator: Sigmund Augdal <sigmunau@idi.ntnu.no>.\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
......@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: vlc\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: 2002-05-26 18:31+0200\n"
"Last-Translator: Arkadiusz Lipiec <alipiec@elka.pw.edu.pl>\n"
"Language-Team: polish <pl@li.org>\n"
......
......@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: gnome-vlc\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: 2001-02-19 19:58+03:00\n"
"Last-Translator: Valek Filippov <frob@df.ru>\n"
"Language-Team: Russian <ru@li.org>\n"
......
......@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2002-06-01 19:57+0200\n"
"POT-Creation-Date: 2002-06-02 10:58+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......
......@@ -2,7 +2,7 @@
* aout_ext-dec.c : exported fifo management functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: aout_ext-dec.c,v 1.17 2002/06/01 18:04:49 sam Exp $
* $Id: aout_ext-dec.c,v 1.18 2002/06/02 09:03:54 sam Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Cyril Deguet <asmax@via.ecp.fr>
......@@ -44,14 +44,14 @@ aout_fifo_t * __aout_CreateFifo( vlc_object_t *p_this, int i_format,
int i_index;
/* Spawn an audio output if there is none */
p_aout = vlc_object_find( p_this->p_vlc, VLC_OBJECT_AOUT, FIND_CHILD );
p_aout = vlc_object_find( p_this, VLC_OBJECT_AOUT, FIND_ANYWHERE );
if( p_aout )
{
if( p_aout->fifo[0].i_format != i_format )
{
msg_Dbg( p_this, "changing aout type" );
vlc_object_unlink_all( p_aout );
vlc_object_detach_all( p_aout );
vlc_object_release( p_aout );
aout_DestroyThread( p_aout );
p_aout = NULL;
......
......@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.37 2002/06/01 12:32:01 sam Exp $
* $Id: input_dec.c,v 1.38 2002/06/02 09:03:54 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
......@@ -254,7 +254,7 @@ static decoder_fifo_t * CreateDecoderFifo( input_thread_t * p_input,
*****************************************************************************/
static void DeleteDecoderFifo( decoder_fifo_t * p_fifo )
{
vlc_object_unlink_all( p_fifo );
vlc_object_detach_all( p_fifo );
msg_Dbg( p_fifo, "killing decoder for 0x%x, type 0x%x, %d PES in FIFO",
p_fifo->i_id, p_fifo->i_type, p_fifo->i_depth );
......
......@@ -4,7 +4,7 @@
* and spawns threads.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: libvlc.c,v 1.4 2002/06/01 18:04:49 sam Exp $
* $Id: libvlc.c,v 1.5 2002/06/02 09:03:54 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
......@@ -605,7 +605,7 @@ vlc_error_t vlc_stop( vlc_t *p_vlc )
while( (p_intf = vlc_object_find( p_vlc, VLC_OBJECT_INTF, FIND_CHILD )) )
{
intf_StopThread( p_intf );
vlc_object_unlink_all( p_intf );
vlc_object_detach_all( p_intf );
vlc_object_release( p_intf );
intf_Destroy( p_intf );
}
......@@ -617,7 +617,7 @@ vlc_error_t vlc_stop( vlc_t *p_vlc )
while( (p_playlist = vlc_object_find( p_vlc, VLC_OBJECT_PLAYLIST,
FIND_CHILD )) )
{
vlc_object_unlink_all( p_playlist );
vlc_object_detach_all( p_playlist );
vlc_object_release( p_playlist );
playlist_Destroy( p_playlist );
}
......@@ -628,7 +628,7 @@ vlc_error_t vlc_stop( vlc_t *p_vlc )
msg_Dbg( p_vlc, "removing all video outputs" );
while( (p_vout = vlc_object_find( p_vlc, VLC_OBJECT_VOUT, FIND_CHILD )) )
{
vlc_object_unlink_all( p_vout );
vlc_object_detach_all( p_vout );
vlc_object_release( p_vout );
vout_DestroyThread( p_vout );
}
......@@ -639,7 +639,7 @@ vlc_error_t vlc_stop( vlc_t *p_vlc )
msg_Dbg( p_vlc, "removing all audio outputs" );
while( (p_aout = vlc_object_find( p_vlc, VLC_OBJECT_AOUT, FIND_CHILD )) )
{
vlc_object_unlink_all( p_aout );
vlc_object_detach_all( p_aout );
vlc_object_release( p_aout );
aout_DestroyThread( p_aout );
}
......
......@@ -2,7 +2,7 @@
* beos_init.cpp: Initialization for BeOS specific features
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: beos_specific.cpp,v 1.21 2002/06/01 14:31:32 sam Exp $
* $Id: beos_specific.cpp,v 1.22 2002/06/02 09:03:54 sam Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
*
......@@ -114,7 +114,7 @@ static void AppThread( vlc_object_t * p_this )
vlc_object_attach( p_this, p_this->p_vlc );
BeApp->p_this = p_this;
BeApp->Run();
vlc_object_unlink_all( p_this );
vlc_object_detach_all( p_this );
delete BeApp;
}
......
......@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.64 2002/06/01 18:04:49 sam Exp $
* $Id: modules.c,v 1.65 2002/06/02 09:03:54 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
......@@ -693,8 +693,6 @@ static int AllocatePluginModule( vlc_object_t * p_this, char * psz_filename )
return -1;
}
vlc_object_attach( p_module, p_this );
/* We need to fill these since they may be needed by CallSymbol() */
p_module->is.plugin.psz_filename = psz_filename;
p_module->is.plugin.handle = handle;
......@@ -790,6 +788,8 @@ static int AllocatePluginModule( vlc_object_t * p_this, char * psz_filename )
msg_Dbg( p_this, "plugin `%s', %s",
p_module->psz_object_name, p_module->psz_longname );
vlc_object_attach( p_module, p_this );
return 0;
}
#endif /* HAVE_DYNAMIC_PLUGINS */
......@@ -926,7 +926,7 @@ static int DeleteModule( module_t * p_module )
}
#endif
vlc_object_unlink_all( p_module );
vlc_object_detach_all( p_module );
/* Unlink the module from the linked list. */
if( p_module->prev != NULL )
......
......@@ -306,8 +306,8 @@ static inline const char * module_error( char *psz_buffer )
(p_symbols)->__vlc_object_find_inner = __vlc_object_find; \
(p_symbols)->__vlc_object_yield_inner = __vlc_object_yield; \
(p_symbols)->__vlc_object_release_inner = __vlc_object_release; \
(p_symbols)->__vlc_object_unlink_inner = __vlc_object_unlink; \
(p_symbols)->__vlc_object_unlink_all_inner = __vlc_object_unlink_all; \
(p_symbols)->__vlc_object_detach_inner = __vlc_object_detach; \
(p_symbols)->__vlc_object_detach_all_inner = __vlc_object_detach_all; \
(p_symbols)->__vlc_object_attach_inner = __vlc_object_attach; \
(p_symbols)->__vlc_dumpstructure_inner = __vlc_dumpstructure; \
This diff is collapsed.
......@@ -2,7 +2,7 @@
* playlist.c : Playlist management functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: playlist.c,v 1.2 2002/06/01 18:04:49 sam Exp $
* $Id: playlist.c,v 1.3 2002/06/02 09:03:54 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -70,7 +70,7 @@ playlist_t * __playlist_Create ( vlc_object_t *p_parent )
{
msg_Err( p_playlist, "cannot spawn playlist thread" );
vlc_mutex_destroy( &p_playlist->change_lock );
vlc_object_unlink_all( p_playlist );
vlc_object_detach_all( p_playlist );
vlc_object_destroy( p_playlist );
return NULL;
}
......@@ -103,8 +103,7 @@ int __playlist_Add( vlc_object_t *p_this, int i_pos, const char * psz_item )
{
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_this->p_vlc, VLC_OBJECT_PLAYLIST,
FIND_CHILD );
p_playlist = vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist == NULL )
{
......@@ -211,7 +210,7 @@ static void RunThread ( playlist_t *p_playlist )
vlc_mutex_unlock( &p_playlist->change_lock );
/* Destroy input */
vlc_object_unlink_all( p_input );
vlc_object_detach_all( p_input );
vlc_object_release( p_input );
input_DestroyThread( p_input );
}
......@@ -269,7 +268,7 @@ static void RunThread ( playlist_t *p_playlist )
vlc_mutex_unlock( &p_playlist->change_lock );
/* Destroy input */
vlc_object_unlink_all( p_input );
vlc_object_detach_all( p_input );
vlc_object_release( p_input );
input_DestroyThread( p_input );
}
......
......@@ -5,7 +5,7 @@
* thread, and destroy a previously oppened video output thread.
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: video_output.c,v 1.182 2002/06/01 18:04:49 sam Exp $
* $Id: video_output.c,v 1.183 2002/06/02 09:03:54 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
......@@ -195,7 +195,7 @@ vout_thread_t * __vout_CreateThread ( vlc_object_t *p_parent,
void vout_DestroyThread( vout_thread_t *p_vout )
{
/* Unlink object */
vlc_object_unlink_all( p_vout );
vlc_object_detach_all( p_vout );
/* Request thread destruction */
p_vout->b_die = 1;
......@@ -513,6 +513,7 @@ static void RunThread( vout_thread_t *p_vout)
p_vout->i_heap_size--;
}
vlc_mutex_unlock( &p_vout->picture_lock );
p_last_picture = NULL;
}
/* Compute FPS rate */
......
......@@ -282,6 +282,8 @@ rm -fr %buildroot
%{_libdir}/vlc/dvd.so
%{_libdir}/vlc/fb.so
%{_libdir}/vlc/file.so
%{_libdir}/vlc/filter_clone.so
%{_libdir}/vlc/filter_crop.so
%{_libdir}/vlc/filter_deinterlace.so
%{_libdir}/vlc/filter_distort.so
%{_libdir}/vlc/filter_invert.so
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment