Changeset 6e8f9504cb15556b811badce004b806f69aadb5e

Show
Ignore:
Timestamp:
12/08/02 11:34:15 (6 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1029144855 +0000
git-parent:

[2e448ef8ddd59d81aa28e207bda0bd2b4fcdf1b7]

git-author:
Sam Hocevar <sam@videolan.org> 1029144855 +0000
Message:
  • ./src/misc/objects.c: two big changes in the object API: now objects can
    only have one parent, because I don't want to deal with cycles, and each
    created object is indexed in a global array. This feature is unused yet,
    but it will speed up vlc_object_find(FIND_ANYWHERE).
  • ./debian/rules: activated the faad codec.
  • ./doc/fortunes.txt: new fortune cookies.
  • ./modules/codec/mpeg_video/headers.c: reduced the use of attach/detach.
  • ./modules/audio_output/oss.c: fixed two compilation warnings.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure

    rfec0d40 r6e8f950  
    71097109    else 
    71107110            echo "$ac_t""no" 1>&6 
    7111       { echo "configure: error: cannot find ${real_faad_tree}/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}" 1>&2; exit 1; } 
     7111      { echo "configure: error: cannot find ${real_faad_tree}/libfaad/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}" 1>&2; exit 1; } 
    71127112    fi 
    71137113  else 
  • configure.in

    rfec0d40 r6e8f950  
    10961096      dnl  The given libfaad wasn't built 
    10971097      AC_MSG_RESULT(no) 
    1098       AC_MSG_ERROR([cannot find ${real_faad_tree}/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}]) 
     1098      AC_MSG_ERROR([cannot find ${real_faad_tree}/libfaad/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}]) 
    10991099    fi 
    11001100  else 
  • debian/rules

    r05e3077 r6e8f950  
    1111# Compilation options 
    1212export FFMPEG_VERSION=cvs 
    13 export CONFIG_FLAGS="--enable-release --prefix=/usr --enable-gnome --enable-gtk --enable-fb --enable-ggi --enable-sdl --enable-esd --enable-qt --enable-mad --enable-arts --enable-alsa --enable-lirc --enable-a52 --enable-aa --enable-dvbpsi --enable-xosd --enable-mozilla --enable-kde --enable-ffmpeg --with-ffmpeg-tree=ffmpeg-$(FFMPEG_VERSION) --enable-mp4 --enable-dvb --enable-dv" 
     13export FAAD_VERSION=cvs 
     14export CONFIG_FLAGS="--enable-release --prefix=/usr --enable-gnome --enable-gtk --enable-fb --enable-ggi --enable-sdl --enable-esd --enable-qt --enable-mad --enable-arts --enable-alsa --enable-lirc --enable-a52 --enable-aa --enable-dvbpsi --enable-xosd --enable-mozilla --enable-kde --enable-ffmpeg --with-ffmpeg-tree=ffmpeg-$(FFMPEG_VERSION) --enable-mp4 --enable-dvb --enable-dv --enable-faad --with-faad-tree=faad-$(FAAD_VERSION)" 
    1415# Remove --without-dvdcss here in non-totalitarian countries 
    1516export DVDCSS_FLAGS="--enable-dvd --without-dvdcss" 
  • doc/fortunes.txt

    r50b8a06 r6e8f950  
    197197  -- #videolan 
    198198% 
     199<ali> by the way i've never learnt the way to make figlets lool ... 
     200<lool> /exec -o figlet -f small 'ali is so stupid !' 
     201<sam> I'm not absolutely positive it was a good idea to teach her 
     202<sam> it's like handing a rocket launcher to a 6yr old ... 
     203 
     204  -- #videolan 
     205% 
     206<|sF|Vengance|> do u have any videos of porn u can send me? 
     207 
     208  -- #videolan 
     209% 
     210-+- Ourumov [www-data@brahma.via.ecp.fr] has joined #videolan 
     211<Ourumov> hey anybody here know videolan ? 
     212-*- SignOff: Ourumov (Client Quit) 
     213 
     214  -- #videolan 
     215% 
  • include/main.h

    ra46b300 r6e8f950  
    44 ***************************************************************************** 
    55 * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN 
    6  * $Id: main.h,v 1.43 2002/08/09 16:39:08 sam Exp $ 
     6 * $Id: main.h,v 1.44 2002/08/12 09:34:15 sam Exp $ 
    77 * 
    88 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    5959 
    6060    /* The module bank */ 
    61     module_bank_t * p_module_bank; 
     61    module_bank_t *        p_module_bank; 
    6262 
    6363    /* The message bank */ 
    64     msg_bank_t      msg_bank; 
     64    msg_bank_t             msg_bank; 
    6565 
    6666    /* Shared data - these structures are accessed directly from p_vlc by 
    6767     * several modules */ 
    68     intf_msg_t *           p_msg;                 /* messages interface data */ 
    6968    input_channel_t *      p_channel;                /* channel library data */ 
    7069 
     
    7271    vlc_mutex_t            config_lock;          /* lock for the config file */ 
    7372    vlc_mutex_t            structure_lock;        /* lock for the p_vlc tree */ 
     73 
     74    /* Object structure data */ 
    7475    int                    i_unique;                    /* p_vlc occurence # */ 
    7576    int                    i_counter;                      /* object counter */ 
     77    int                    i_objects;              /* Attached objects count */ 
     78    vlc_object_t **        pp_objects;               /* Array of all objects */ 
    7679 
    7780    /* Pointer to the big, evil global lock */ 
  • include/vlc_common.h

    reb8abe0 r6e8f950  
    44 ***************************************************************************** 
    55 * Copyright (C) 1998, 1999, 2000 VideoLAN 
    6  * $Id: vlc_common.h,v 1.17 2002/08/10 19:23:06 sam Exp $ 
     6 * $Id: vlc_common.h,v 1.18 2002/08/12 09:34:15 sam Exp $ 
    77 * 
    88 * Authors: Samuel Hocevar <sam@via.ecp.fr> 
     
    246246    volatile vlc_bool_t b_die;                     /* set by the outside */ \ 
    247247    volatile vlc_bool_t b_dead;                     /* set by the object */ \ 
     248    volatile vlc_bool_t b_attached;                 /* set by the object */ \ 
    248249                                                                            \ 
    249250    vlc_t *         p_vlc;                           /* root of all evil */ \ 
    250251                                                                            \ 
    251     volatile int    i_refcount;                                             \ 
    252     vlc_object_t ** pp_parents;                           /* our parents */ \ 
    253     volatile int    i_parents;                                              \ 
     252    volatile int    i_refcount;                           /* usage count */ \ 
     253    vlc_object_t *  p_parent;                              /* our parent */ \ 
    254254    vlc_object_t ** pp_children;                         /* our children */ \ 
    255255    volatile int    i_children;                                             \ 
  • include/vlc_objects.h

    r976dfc3 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: vlc_objects.h,v 1.5 2002/07/31 20:56:50 sam Exp $ 
     5 * $Id: vlc_objects.h,v 1.6 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    5252VLC_EXPORT( void, __vlc_object_yield, ( vlc_object_t * ) ); 
    5353VLC_EXPORT( void, __vlc_object_release, ( vlc_object_t * ) ); 
    54 VLC_EXPORT( void, __vlc_object_detach, ( vlc_object_t *, vlc_object_t * ) ); 
    55 VLC_EXPORT( void, __vlc_object_detach_all, ( vlc_object_t * ) ); 
     54VLC_EXPORT( void, __vlc_object_detach, ( vlc_object_t * ) ); 
    5655VLC_EXPORT( void, __vlc_object_attach, ( vlc_object_t *, vlc_object_t * ) ); 
    5756#if 0 
     
    7776    __vlc_object_release( VLC_OBJECT(a) ) 
    7877 
    79 #define vlc_object_detach(a,b) \ 
    80     __vlc_object_detach( VLC_OBJECT(a), VLC_OBJECT(b) ) 
    81  
    82 #define vlc_object_detach_all(a) \ 
    83     __vlc_object_detach_all( VLC_OBJECT(a) ) 
     78#define vlc_object_detach(a) \ 
     79    __vlc_object_detach( VLC_OBJECT(a) ) 
    8480 
    8581#define vlc_object_attach(a,b) \ 
  • include/vlc_symbols.h

    r9000920 r6e8f950  
    9494    void (* __vlc_object_attach_inner) ( vlc_object_t *, vlc_object_t * ) ; 
    9595    void (* __vlc_object_destroy_inner) ( vlc_object_t * ) ; 
    96     void (* __vlc_object_detach_all_inner) ( vlc_object_t * ) ; 
    97     void (* __vlc_object_detach_inner) ( vlc_object_t *, vlc_object_t * ) ; 
     96    void (* __vlc_object_detach_inner) ( vlc_object_t * ) ; 
    9897    void (* __vlc_object_release_inner) ( vlc_object_t * ) ; 
    9998    void (* __vlc_object_yield_inner) ( vlc_object_t * ) ; 
     
    192191#   define __vlc_object_destroy p_symbols->__vlc_object_destroy_inner 
    193192#   define __vlc_object_detach p_symbols->__vlc_object_detach_inner 
    194 #   define __vlc_object_detach_all p_symbols->__vlc_object_detach_all_inner 
    195193#   define __vlc_object_find p_symbols->__vlc_object_find_inner 
    196194#   define __vlc_object_release p_symbols->__vlc_object_release_inner 
  • modules/access/dvdplay/demux.c

    r66c62b4 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2001 VideoLAN 
    5  * $Id: demux.c,v 1.2 2002/08/07 00:29:36 sam Exp $ 
     5 * $Id: demux.c,v 1.3 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Author: St�ane Borel <stef@via.ecp.fr> 
     
    133133    { 
    134134        intf_StopThread( p_intf ); 
    135         vlc_object_detach_all( p_intf ); 
     135        vlc_object_detach( p_intf ); 
    136136        vlc_object_release( p_intf ); 
    137137        intf_Destroy( p_intf ); 
  • modules/audio_output/oss.c

    rfec0d40 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000-2002 VideoLAN 
    5  * $Id: oss.c,v 1.6 2002/08/11 22:36:35 massiot Exp $ 
     5 * $Id: oss.c,v 1.7 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Michel Kaempf <maxx@via.ecp.fr> 
     
    294294    while ( !p_sys->b_die ) 
    295295    { 
    296         int i_bytes_per_sample; 
    297296        aout_buffer_t * p_buffer; 
    298         mtime_t next_date
     297        mtime_t next_date = 0
    299298        int i_tmp, i_size; 
    300299        byte_t * p_bytes; 
  • modules/codec/cinepak/cinepak.c

    r5db40eb r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: cinepak.c,v 1.2 2002/08/04 18:39:41 sam Exp $ 
     5 * $Id: cinepak.c,v 1.3 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    301301        { 
    302302            /* We are not interested in this format, close this vout */ 
    303             vlc_object_detach_all( p_vout ); 
     303            vlc_object_detach( p_vout ); 
    304304            vlc_object_release( p_vout ); 
    305305            vout_DestroyThread( p_vout ); 
     
    309309        { 
    310310            /* This video output is cool! Hijack it. */ 
    311             vlc_object_detach_all( p_vout ); 
     311            vlc_object_detach( p_vout ); 
    312312            vlc_object_attach( p_vout, p_vdec->p_fifo ); 
    313313            vlc_object_release( p_vout ); 
     
    956956    { 
    957957        /* We are about to die. Reattach video output to p_vlc. */ 
    958         vlc_object_detach( p_vdec->p_vout, p_vdec->p_fifo ); 
     958        vlc_object_detach( p_vdec->p_vout ); 
    959959        vlc_object_attach( p_vdec->p_vout, p_vdec->p_fifo->p_vlc ); 
    960960    } 
  • modules/codec/dv/dv.c

    r6b9376d r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: dv.c,v 1.1 2002/08/05 15:16:18 sam Exp $ 
     5 * $Id: dv.c,v 1.2 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    163163            { 
    164164                /* We are not interested in this format, close this vout */ 
    165                 vlc_object_detach_all( p_vout ); 
     165                vlc_object_detach( p_vout ); 
    166166                vlc_object_release( p_vout ); 
    167167                vout_DestroyThread( p_vout ); 
     
    171171            { 
    172172                /* This video output is cool! Hijack it. */ 
    173                 vlc_object_detach_all( p_vout ); 
     173                vlc_object_detach( p_vout ); 
    174174                vlc_object_attach( p_vout, p_fifo ); 
    175175                vlc_object_release( p_vout ); 
  • modules/codec/ffmpeg/ffmpeg.c

    r37e30b1 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: ffmpeg.c,v 1.4 2002/08/10 20:05:21 fenrir Exp $ 
     5 * $Id: ffmpeg.c,v 1.5 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    414414        { 
    415415            /* We are not interested in this format, close this vout */ 
    416             vlc_object_detach_all( p_vout ); 
     416            vlc_object_detach( p_vout ); 
    417417            vlc_object_release( p_vout ); 
    418418            vout_DestroyThread( p_vout ); 
     
    422422        { 
    423423            /* This video output is cool! Hijack it. */ 
    424             vlc_object_detach_all( p_vout ); 
     424            vlc_object_detach( p_vout ); 
    425425            vlc_object_attach( p_vout, p_vdec->p_fifo ); 
    426426            vlc_object_release( p_vout ); 
     
    972972    { 
    973973        /* We are about to die. Reattach video output to p_vlc. */ 
    974         vlc_object_detach( p_vdec->p_vout, p_vdec->p_fifo ); 
     974        vlc_object_detach( p_vdec->p_vout ); 
    975975        vlc_object_attach( p_vdec->p_vout, p_vdec->p_fifo->p_vlc ); 
    976976    } 
  • modules/codec/mpeg_video/headers.c

    r5db40eb r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: headers.c,v 1.2 2002/08/04 18:39:41 sam Exp $ 
     5 * $Id: headers.c,v 1.3 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    312312    int i_height_save, i_width_save, i_aspect; 
    313313 
     314    vout_thread_t *p_vout; 
     315 
    314316    i_height_save = p_vpar->sequence.i_height; 
    315317    i_width_save = p_vpar->sequence.i_width; 
     
    489491    /* Spawn a video output if there is none. First we look for our children, 
    490492     * then we look for any other vout that might be available. */ 
    491     p_vpar->p_vout = vlc_object_find( p_vpar->p_fifo, VLC_OBJECT_VOUT, 
    492                                                       FIND_CHILD ); 
    493     if( p_vpar->p_vout == NULL ) 
    494     { 
    495         p_vpar->p_vout = vlc_object_find( p_vpar->p_fifo, VLC_OBJECT_VOUT, 
    496                                                           FIND_ANYWHERE ); 
     493    p_vout = vlc_object_find( p_vpar->p_fifo, VLC_OBJECT_VOUT, FIND_CHILD ); 
     494    if( p_vout == NULL ) 
     495    { 
     496        p_vout = vlc_object_find( p_vpar->p_fifo, VLC_OBJECT_VOUT, 
     497                                                  FIND_ANYWHERE ); 
    497498    } 
    498499     
    499     if( p_vpar->p_vout ) 
    500     { 
    501         if( p_vpar->p_vout->render.i_width != p_vpar->sequence.i_width 
    502              || p_vpar->p_vout->render.i_height != p_vpar->sequence.i_height 
    503              || p_vpar->p_vout->render.i_chroma != ChromaToFourCC( p_vpar->sequence.i_chroma_format ) 
    504              || p_vpar->p_vout->render.i_aspect != p_vpar->sequence.i_aspect ) 
     500    if( p_vout ) 
     501    { 
     502        if( p_vout->render.i_width != p_vpar->sequence.i_width 
     503             || p_vout->render.i_height != p_vpar->sequence.i_height 
     504             || p_vout->render.i_chroma != ChromaToFourCC( p_vpar->sequence.i_chroma_format ) 
     505             || p_vout->render.i_aspect != p_vpar->sequence.i_aspect ) 
    505506        { 
    506507            /* We are not interested in this format, close this vout */ 
    507             vlc_object_detach_all( p_vpar->p_vout ); 
    508             vlc_object_release( p_vpar->p_vout ); 
    509             vout_DestroyThread( p_vpar->p_vout ); 
    510             p_vpar->p_vout = NULL; 
     508            vlc_object_detach( p_vout ); 
     509            vlc_object_release( p_vout ); 
     510            vout_DestroyThread( p_vout ); 
     511            p_vout = NULL; 
    511512        } 
    512513        else 
    513514        { 
    514515            /* This video output is cool! Hijack it. */ 
    515             vlc_object_detach_all( p_vpar->p_vout ); 
    516             vlc_object_attach( p_vpar->p_vout, p_vpar->p_fifo ); 
    517             vlc_object_release( p_vpar->p_vout ); 
    518         } 
    519     } 
     516            if( p_vout != p_vpar->p_vout ) 
     517            { 
     518                vlc_object_detach( p_vout ); 
     519                vlc_object_attach( p_vout, p_vpar->p_fifo ); 
     520            } 
     521            vlc_object_release( p_vout ); 
     522        } 
     523    } 
     524 
     525    p_vpar->p_vout = p_vout; 
    520526 
    521527    if( p_vpar->p_fifo->b_die || p_vpar->p_fifo->b_error ) 
  • modules/codec/mpeg_video/parser.c

    rd860bdd r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: parser.c,v 1.3 2002/08/04 20:04:11 sam Exp $ 
     5 * $Id: parser.c,v 1.4 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    316316 
    317317        /* We are about to die. Reattach video output to p_vlc. */ 
    318         vlc_object_detach( p_vpar->p_vout, p_vpar->p_fifo ); 
     318        vlc_object_detach( p_vpar->p_vout ); 
    319319        vlc_object_attach( p_vpar->p_vout, p_vpar->p_fifo->p_vlc ); 
    320320    } 
  • modules/codec/mpeg_video/pool.c

    r5db40eb r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: pool.c,v 1.2 2002/08/04 18:39:41 sam Exp $ 
     5 * $Id: pool.c,v 1.3 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    126126                int j; 
    127127 
    128                 vlc_object_detach_all( p_vpar->pool.pp_vdec[i] ); 
     128                vlc_object_detach( p_vpar->pool.pp_vdec[i] ); 
    129129                vdec_DestroyThread( p_vpar->pool.pp_vdec[i] ); 
    130130 
     
    219219        int j; 
    220220 
    221         vlc_object_detach_all( p_vpar->pool.pp_vdec[i] ); 
     221        vlc_object_detach( p_vpar->pool.pp_vdec[i] ); 
    222222        vdec_DestroyThread( p_vpar->pool.pp_vdec[i] ); 
    223223 
     
    236236 
    237237    /* Free fake video decoder (used when parser == decoder). */ 
    238     vlc_object_detach_all( p_vpar->pool.p_vdec ); 
     238    vlc_object_detach( p_vpar->pool.p_vdec ); 
    239239    vdec_EndThread( p_vpar->pool.p_vdec ); 
    240240    vlc_object_destroy( p_vpar->pool.p_vdec ); 
  • modules/gui/macosx/intf.m

    r19ea8fe r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: intf.m,v 1.1 2002/08/04 17:23:43 sam Exp $ 
     5 * $Id: intf.m,v 1.2 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
     
    403403                                          FIND_CHILD )) ) 
    404404    { 
    405         vlc_object_detach_all( p_playlist ); 
     405        vlc_object_detach( p_playlist ); 
    406406        vlc_object_release( p_playlist ); 
    407407        playlist_Destroy( p_playlist ); 
     
    415415                                      VLC_OBJECT_VOUT, FIND_CHILD )) ) 
    416416    { 
    417         vlc_object_detach_all( p_vout ); 
     417        vlc_object_detach( p_vout ); 
    418418        vlc_object_release( p_vout ); 
    419419        vout_DestroyThread( p_vout ); 
  • modules/video_output/directx/aout.c

    r5bbe040 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: aout.c,v 1.2 2002/08/10 18:17:06 gbazin Exp $ 
     5 * $Id: aout.c,v 1.3 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    266266    if( p_aout->output.p_sys->p_notif ) 
    267267    { 
    268         vlc_object_detach_all( p_aout->output.p_sys->p_notif ); 
     268        vlc_object_detach( p_aout->output.p_sys->p_notif ); 
    269269        if( p_aout->output.p_sys->p_notif->b_thread ) 
    270270        { 
  • modules/video_output/directx/vout.c

    r19ea8fe r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: vout.c,v 1.1 2002/08/04 17:23:43 sam Exp $ 
     5 * $Id: vout.c,v 1.2 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    289289    if( p_vout->p_sys->p_event ) 
    290290    { 
    291         vlc_object_detach_all( p_vout->p_sys->p_event ); 
     291        vlc_object_detach( p_vout->p_sys->p_event ); 
    292292 
    293293        /* Kill DirectXEventThread */ 
  • modules/video_output/sdl/aout.c

    r123b321 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: aout.c,v 1.2 2002/08/07 21:36:56 massiot Exp $ 
     5 * $Id: aout.c,v 1.3 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Michel Kaempf <maxx@via.ecp.fr> 
     
    157157    else 
    158158    { 
    159         memset( p_stream, 0, i_len ); 
     159        p_aout->p_vlc->pf_memset( p_stream, 0, i_len ); 
    160160    } 
    161161} 
  • modules/visualization/scope/scope.c

    r19ea8fe r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: scope.c,v 1.1 2002/08/04 17:23:44 sam Exp $ 
     5 * $Id: scope.c,v 1.2 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    289289    /* Kill audio output */ 
    290290    module_Unneed( p_aout->p_sys->p_aout, p_aout->p_sys->p_aout->p_module ); 
    291     vlc_object_detach_all( p_aout->p_sys->p_aout ); 
     291    vlc_object_detach( p_aout->p_sys->p_aout ); 
    292292    vlc_object_destroy( p_aout->p_sys->p_aout ); 
    293293 
  • src/audio_output/aout_ext-dec.c

    r7689bc9 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: aout_ext-dec.c,v 1.20 2002/08/08 00:35:11 sam Exp $ 
     5 * $Id: aout_ext-dec.c,v 1.21 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Michel Kaempf <maxx@via.ecp.fr> 
     
    5252        { 
    5353            msg_Dbg( p_this, "changing aout type" ); 
    54             vlc_object_detach_all( p_aout ); 
     54            vlc_object_detach( p_aout ); 
    5555            vlc_object_release( p_aout ); 
    5656            aout_DestroyThread( p_aout ); 
  • src/audio_output/audio_output.c

    r0ef062c r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: audio_output.c,v 1.93 2002/08/11 23:26:28 massiot Exp $ 
     5 * $Id: audio_output.c,v 1.94 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    7878 
    7979    /* Free structure. */ 
    80     vlc_object_detach_all( p_aout ); 
    8180    vlc_object_destroy( p_aout ); 
    8281} 
  • src/audio_output/filters.c

    r9000920 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: filters.c,v 1.2 2002/08/09 23:47:23 massiot Exp $ 
     5 * $Id: filters.c,v 1.3 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    9292        { 
    9393            msg_Err( p_aout, "couldn't find a filter for any conversion" ); 
    94             vlc_object_detach_all( pp_filters[0] ); 
     94            vlc_object_detach( pp_filters[0] ); 
    9595            vlc_object_destroy( pp_filters[0] ); 
    9696            return -1; 
     
    102102    if ( pp_filters[1] == NULL ) 
    103103    { 
    104         vlc_object_detach_all( pp_filters[0] ); 
     104        vlc_object_detach( pp_filters[0] ); 
    105105        vlc_object_destroy( pp_filters[0] ); 
    106106        return -1; 
     
    118118        msg_Err( p_aout, 
    119119                 "couldn't find a filter for the 2nd part of the conversion" ); 
    120         vlc_object_detach_all( pp_filters[0] ); 
     120        vlc_object_detach( pp_filters[0] ); 
    121121        vlc_object_destroy( pp_filters[0] ); 
    122         vlc_object_detach_all( pp_filters[1] ); 
     122        vlc_object_detach( pp_filters[1] ); 
    123123        vlc_object_destroy( pp_filters[1] ); 
    124124        return -1; 
     
    143143    { 
    144144        module_Unneed( pp_filters[i], pp_filters[i]->p_module ); 
    145         vlc_object_detach_all( pp_filters[i] ); 
     145        vlc_object_detach( pp_filters[i] ); 
    146146        vlc_object_destroy( pp_filters[i] ); 
    147147    } 
  • src/input/input_dec.c

    r7689bc9 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: input_dec.c,v 1.43 2002/08/08 00:35:11 sam Exp $ 
     5 * $Id: input_dec.c,v 1.44 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    246246static void DeleteDecoderFifo( decoder_fifo_t * p_fifo ) 
    247247{ 
    248     vlc_object_detach_all( p_fifo ); 
     248    vlc_object_detach( p_fifo ); 
    249249 
    250250    msg_Dbg( p_fifo, "killing decoder for 0x%x, fourcc `%4.4s', %d PES in FIFO", 
  • src/libvlc.c

    ra46b300 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2002 VideoLAN 
    5  * $Id: libvlc.c,v 1.24 2002/08/09 16:39:08 sam Exp $ 
     5 * $Id: libvlc.c,v 1.25 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    590590    if( err ) 
    591591    { 
    592         vlc_object_detach_all( p_intf ); 
     592        vlc_object_detach( p_intf ); 
    593593        intf_Destroy( p_intf ); 
    594594        return err; 
     
    630630    { 
    631631        intf_StopThread( p_intf ); 
    632         vlc_object_detach_all( p_intf ); 
     632        vlc_object_detach( p_intf ); 
    633633        vlc_object_release( p_intf ); 
    634634        intf_Destroy( p_intf ); 
     
    642642                                          FIND_CHILD )) ) 
    643643    { 
    644         vlc_object_detach_all( p_playlist ); 
     644        vlc_object_detach( p_playlist ); 
    645645        vlc_object_release( p_playlist ); 
    646646        playlist_Destroy( p_playlist ); 
     
    653653    while( (p_vout = vlc_object_find( p_vlc, VLC_OBJECT_VOUT, FIND_CHILD )) ) 
    654654    { 
    655         vlc_object_detach_all( p_vout ); 
     655        vlc_object_detach( p_vout ); 
    656656        vlc_object_release( p_vout ); 
    657657        vout_DestroyThread( p_vout ); 
     
    664664    while( (p_aout = vlc_object_find( p_vlc, VLC_OBJECT_AOUT, FIND_CHILD )) ) 
    665665    { 
    666         vlc_object_detach_all( (vlc_object_t *)p_aout ); 
     666        vlc_object_detach( (vlc_object_t *)p_aout ); 
    667667        vlc_object_release( (vlc_object_t *)p_aout ); 
    668668        aout_DeleteInstance( p_aout ); 
  • src/misc/beos_specific.cpp

    rf8570a6 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: beos_specific.cpp,v 1.23 2002/06/02 14:26:15 gbazin Exp $ 
     5 * $Id: beos_specific.cpp,v 1.24 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Jean-Marc Dressler <polux@via.ecp.fr> 
     
    115115    BeApp->p_this = p_this; 
    116116    BeApp->Run(); 
    117     vlc_object_detach_all( p_this ); 
     117    vlc_object_detach( p_this ); 
    118118    delete BeApp; 
    119119} 
  • src/misc/modules.c

    r7689bc9 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: modules.c,v 1.82 2002/08/08 00:35:11 sam Exp $ 
     5 * $Id: modules.c,v 1.83 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    156156    module_t * p_next; 
    157157 
    158     vlc_object_detach_all( p_this->p_vlc->p_module_bank ); 
     158    vlc_object_detach( p_this->p_vlc->p_module_bank ); 
    159159 
    160160    while( p_this->p_vlc->p_module_bank->first != NULL ) 
     
    939939#endif 
    940940 
    941     vlc_object_detach_all( p_module ); 
     941    vlc_object_detach( p_module ); 
    942942 
    943943    /* Unlink the module from the linked list. */ 
     
    972972    { 
    973973        vlc_object_t *p_this = p_module->pp_children[0]; 
    974         vlc_object_detach_all( p_this ); 
     974        vlc_object_detach( p_this ); 
    975975        vlc_object_destroy( p_this ); 
    976976    } 
  • src/misc/modules_plugin.h

    r9000920 r6e8f950  
    301301    (p_symbols)->__vlc_object_release_inner = __vlc_object_release; \ 
    302302    (p_symbols)->__vlc_object_detach_inner = __vlc_object_detach; \ 
    303     (p_symbols)->__vlc_object_detach_all_inner = __vlc_object_detach_all; \ 
    304303    (p_symbols)->__vlc_object_attach_inner = __vlc_object_attach; \ 
    305304    (p_symbols)->__vlc_dumpstructure_inner = __vlc_dumpstructure; \ 
  • src/misc/objects.c

    r7689bc9 r6e8f950  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: objects.c,v 1.15 2002/08/08 00:35:11 sam Exp $ 
     5 * $Id: objects.c,v 1.16 2002/08/12 09:34:15 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    4848 *****************************************************************************/ 
    4949static vlc_object_t * vlc_object_find_inner( vlc_object_t *, int, int ); 
    50 static void vlc_object_detach_inner( vlc_object_t *, vlc_object_t * ); 
     50static void vlc_object_detach_inner( vlc_object_t * ); 
    5151static void vlc_dumpstructure_inner( vlc_object_t *, int, char * ); 
     52static int  find_index_inner( vlc_object_t *, vlc_object_t **, int ); 
     53static void set_attachment_flag( vlc_object_t *, vlc_bool_t ); 
    5254 
    5355/***************************************************************************** 
     
    121123 
    122124    p_new->i_refcount = 0; 
    123     p_new->b_die = 0; 
    124     p_new->b_error = 0; 
     125    p_new->b_die