Changeset 6e8f9504cb15556b811badce004b806f69aadb5e
- 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
| rfec0d40 |
r6e8f950 |
|
| 7109 | 7109 | else |
|---|
| 7110 | 7110 | 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; } |
|---|
| 7112 | 7112 | fi |
|---|
| 7113 | 7113 | else |
|---|
| rfec0d40 |
r6e8f950 |
|
| 1096 | 1096 | dnl The given libfaad wasn't built |
|---|
| 1097 | 1097 | 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}]) |
|---|
| 1099 | 1099 | fi |
|---|
| 1100 | 1100 | else |
|---|
| r05e3077 |
r6e8f950 |
|
| 11 | 11 | # Compilation options |
|---|
| 12 | 12 | export 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" |
|---|
| | 13 | export FAAD_VERSION=cvs |
|---|
| | 14 | 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 --enable-faad --with-faad-tree=faad-$(FAAD_VERSION)" |
|---|
| 14 | 15 | # Remove --without-dvdcss here in non-totalitarian countries |
|---|
| 15 | 16 | export DVDCSS_FLAGS="--enable-dvd --without-dvdcss" |
|---|
| r50b8a06 |
r6e8f950 |
|
| 197 | 197 | -- #videolan |
|---|
| 198 | 198 | % |
|---|
| | 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 | % |
|---|
| ra46b300 |
r6e8f950 |
|
| 4 | 4 | ***************************************************************************** |
|---|
| 5 | 5 | * 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 $ |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 59 | 59 | |
|---|
| 60 | 60 | /* The module bank */ |
|---|
| 61 | | module_bank_t * p_module_bank; |
|---|
| | 61 | module_bank_t * p_module_bank; |
|---|
| 62 | 62 | |
|---|
| 63 | 63 | /* The message bank */ |
|---|
| 64 | | msg_bank_t msg_bank; |
|---|
| | 64 | msg_bank_t msg_bank; |
|---|
| 65 | 65 | |
|---|
| 66 | 66 | /* Shared data - these structures are accessed directly from p_vlc by |
|---|
| 67 | 67 | * several modules */ |
|---|
| 68 | | intf_msg_t * p_msg; /* messages interface data */ |
|---|
| 69 | 68 | input_channel_t * p_channel; /* channel library data */ |
|---|
| 70 | 69 | |
|---|
| … | … | |
| 72 | 71 | vlc_mutex_t config_lock; /* lock for the config file */ |
|---|
| 73 | 72 | vlc_mutex_t structure_lock; /* lock for the p_vlc tree */ |
|---|
| | 73 | |
|---|
| | 74 | /* Object structure data */ |
|---|
| 74 | 75 | int i_unique; /* p_vlc occurence # */ |
|---|
| 75 | 76 | int i_counter; /* object counter */ |
|---|
| | 77 | int i_objects; /* Attached objects count */ |
|---|
| | 78 | vlc_object_t ** pp_objects; /* Array of all objects */ |
|---|
| 76 | 79 | |
|---|
| 77 | 80 | /* Pointer to the big, evil global lock */ |
|---|
| reb8abe0 |
r6e8f950 |
|
| 4 | 4 | ***************************************************************************** |
|---|
| 5 | 5 | * 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 $ |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Authors: Samuel Hocevar <sam@via.ecp.fr> |
|---|
| … | … | |
| 246 | 246 | volatile vlc_bool_t b_die; /* set by the outside */ \ |
|---|
| 247 | 247 | volatile vlc_bool_t b_dead; /* set by the object */ \ |
|---|
| | 248 | volatile vlc_bool_t b_attached; /* set by the object */ \ |
|---|
| 248 | 249 | \ |
|---|
| 249 | 250 | vlc_t * p_vlc; /* root of all evil */ \ |
|---|
| 250 | 251 | \ |
|---|
| 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 */ \ |
|---|
| 254 | 254 | vlc_object_t ** pp_children; /* our children */ \ |
|---|
| 255 | 255 | volatile int i_children; \ |
|---|
| r976dfc3 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 52 | 52 | VLC_EXPORT( void, __vlc_object_yield, ( vlc_object_t * ) ); |
|---|
| 53 | 53 | VLC_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 * ) ); |
|---|
| | 54 | VLC_EXPORT( void, __vlc_object_detach, ( vlc_object_t * ) ); |
|---|
| 56 | 55 | VLC_EXPORT( void, __vlc_object_attach, ( vlc_object_t *, vlc_object_t * ) ); |
|---|
| 57 | 56 | #if 0 |
|---|
| … | … | |
| 77 | 76 | __vlc_object_release( VLC_OBJECT(a) ) |
|---|
| 78 | 77 | |
|---|
| 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) ) |
|---|
| 84 | 80 | |
|---|
| 85 | 81 | #define vlc_object_attach(a,b) \ |
|---|
| r9000920 |
r6e8f950 |
|
| 94 | 94 | void (* __vlc_object_attach_inner) ( vlc_object_t *, vlc_object_t * ) ; |
|---|
| 95 | 95 | 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 * ) ; |
|---|
| 98 | 97 | void (* __vlc_object_release_inner) ( vlc_object_t * ) ; |
|---|
| 99 | 98 | void (* __vlc_object_yield_inner) ( vlc_object_t * ) ; |
|---|
| … | … | |
| 192 | 191 | # define __vlc_object_destroy p_symbols->__vlc_object_destroy_inner |
|---|
| 193 | 192 | # define __vlc_object_detach p_symbols->__vlc_object_detach_inner |
|---|
| 194 | | # define __vlc_object_detach_all p_symbols->__vlc_object_detach_all_inner |
|---|
| 195 | 193 | # define __vlc_object_find p_symbols->__vlc_object_find_inner |
|---|
| 196 | 194 | # define __vlc_object_release p_symbols->__vlc_object_release_inner |
|---|
| r66c62b4 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Author: St�ane Borel <stef@via.ecp.fr> |
|---|
| … | … | |
| 133 | 133 | { |
|---|
| 134 | 134 | intf_StopThread( p_intf ); |
|---|
| 135 | | vlc_object_detach_all( p_intf ); |
|---|
| | 135 | vlc_object_detach( p_intf ); |
|---|
| 136 | 136 | vlc_object_release( p_intf ); |
|---|
| 137 | 137 | intf_Destroy( p_intf ); |
|---|
| rfec0d40 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Michel Kaempf <maxx@via.ecp.fr> |
|---|
| … | … | |
| 294 | 294 | while ( !p_sys->b_die ) |
|---|
| 295 | 295 | { |
|---|
| 296 | | int i_bytes_per_sample; |
|---|
| 297 | 296 | aout_buffer_t * p_buffer; |
|---|
| 298 | | mtime_t next_date; |
|---|
| | 297 | mtime_t next_date = 0; |
|---|
| 299 | 298 | int i_tmp, i_size; |
|---|
| 300 | 299 | byte_t * p_bytes; |
|---|
| r5db40eb |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 301 | 301 | { |
|---|
| 302 | 302 | /* We are not interested in this format, close this vout */ |
|---|
| 303 | | vlc_object_detach_all( p_vout ); |
|---|
| | 303 | vlc_object_detach( p_vout ); |
|---|
| 304 | 304 | vlc_object_release( p_vout ); |
|---|
| 305 | 305 | vout_DestroyThread( p_vout ); |
|---|
| … | … | |
| 309 | 309 | { |
|---|
| 310 | 310 | /* This video output is cool! Hijack it. */ |
|---|
| 311 | | vlc_object_detach_all( p_vout ); |
|---|
| | 311 | vlc_object_detach( p_vout ); |
|---|
| 312 | 312 | vlc_object_attach( p_vout, p_vdec->p_fifo ); |
|---|
| 313 | 313 | vlc_object_release( p_vout ); |
|---|
| … | … | |
| 956 | 956 | { |
|---|
| 957 | 957 | /* 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 ); |
|---|
| 959 | 959 | vlc_object_attach( p_vdec->p_vout, p_vdec->p_fifo->p_vlc ); |
|---|
| 960 | 960 | } |
|---|
| r6b9376d |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 163 | 163 | { |
|---|
| 164 | 164 | /* We are not interested in this format, close this vout */ |
|---|
| 165 | | vlc_object_detach_all( p_vout ); |
|---|
| | 165 | vlc_object_detach( p_vout ); |
|---|
| 166 | 166 | vlc_object_release( p_vout ); |
|---|
| 167 | 167 | vout_DestroyThread( p_vout ); |
|---|
| … | … | |
| 171 | 171 | { |
|---|
| 172 | 172 | /* This video output is cool! Hijack it. */ |
|---|
| 173 | | vlc_object_detach_all( p_vout ); |
|---|
| | 173 | vlc_object_detach( p_vout ); |
|---|
| 174 | 174 | vlc_object_attach( p_vout, p_fifo ); |
|---|
| 175 | 175 | vlc_object_release( p_vout ); |
|---|
| r37e30b1 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 414 | 414 | { |
|---|
| 415 | 415 | /* We are not interested in this format, close this vout */ |
|---|
| 416 | | vlc_object_detach_all( p_vout ); |
|---|
| | 416 | vlc_object_detach( p_vout ); |
|---|
| 417 | 417 | vlc_object_release( p_vout ); |
|---|
| 418 | 418 | vout_DestroyThread( p_vout ); |
|---|
| … | … | |
| 422 | 422 | { |
|---|
| 423 | 423 | /* This video output is cool! Hijack it. */ |
|---|
| 424 | | vlc_object_detach_all( p_vout ); |
|---|
| | 424 | vlc_object_detach( p_vout ); |
|---|
| 425 | 425 | vlc_object_attach( p_vout, p_vdec->p_fifo ); |
|---|
| 426 | 426 | vlc_object_release( p_vout ); |
|---|
| … | … | |
| 972 | 972 | { |
|---|
| 973 | 973 | /* 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 ); |
|---|
| 975 | 975 | vlc_object_attach( p_vdec->p_vout, p_vdec->p_fifo->p_vlc ); |
|---|
| 976 | 976 | } |
|---|
| r5db40eb |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 312 | 312 | int i_height_save, i_width_save, i_aspect; |
|---|
| 313 | 313 | |
|---|
| | 314 | vout_thread_t *p_vout; |
|---|
| | 315 | |
|---|
| 314 | 316 | i_height_save = p_vpar->sequence.i_height; |
|---|
| 315 | 317 | i_width_save = p_vpar->sequence.i_width; |
|---|
| … | … | |
| 489 | 491 | /* Spawn a video output if there is none. First we look for our children, |
|---|
| 490 | 492 | * 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 ); |
|---|
| 497 | 498 | } |
|---|
| 498 | 499 | |
|---|
| 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 ) |
|---|
| 505 | 506 | { |
|---|
| 506 | 507 | /* 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; |
|---|
| 511 | 512 | } |
|---|
| 512 | 513 | else |
|---|
| 513 | 514 | { |
|---|
| 514 | 515 | /* 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; |
|---|
| 520 | 526 | |
|---|
| 521 | 527 | if( p_vpar->p_fifo->b_die || p_vpar->p_fifo->b_error ) |
|---|
| rd860bdd |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 316 | 316 | |
|---|
| 317 | 317 | /* 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 ); |
|---|
| 319 | 319 | vlc_object_attach( p_vpar->p_vout, p_vpar->p_fifo->p_vlc ); |
|---|
| 320 | 320 | } |
|---|
| r5db40eb |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 126 | 126 | int j; |
|---|
| 127 | 127 | |
|---|
| 128 | | vlc_object_detach_all( p_vpar->pool.pp_vdec[i] ); |
|---|
| | 128 | vlc_object_detach( p_vpar->pool.pp_vdec[i] ); |
|---|
| 129 | 129 | vdec_DestroyThread( p_vpar->pool.pp_vdec[i] ); |
|---|
| 130 | 130 | |
|---|
| … | … | |
| 219 | 219 | int j; |
|---|
| 220 | 220 | |
|---|
| 221 | | vlc_object_detach_all( p_vpar->pool.pp_vdec[i] ); |
|---|
| | 221 | vlc_object_detach( p_vpar->pool.pp_vdec[i] ); |
|---|
| 222 | 222 | vdec_DestroyThread( p_vpar->pool.pp_vdec[i] ); |
|---|
| 223 | 223 | |
|---|
| … | … | |
| 236 | 236 | |
|---|
| 237 | 237 | /* 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 ); |
|---|
| 239 | 239 | vdec_EndThread( p_vpar->pool.p_vdec ); |
|---|
| 240 | 240 | vlc_object_destroy( p_vpar->pool.p_vdec ); |
|---|
| r19ea8fe |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| … | … | |
| 403 | 403 | FIND_CHILD )) ) |
|---|
| 404 | 404 | { |
|---|
| 405 | | vlc_object_detach_all( p_playlist ); |
|---|
| | 405 | vlc_object_detach( p_playlist ); |
|---|
| 406 | 406 | vlc_object_release( p_playlist ); |
|---|
| 407 | 407 | playlist_Destroy( p_playlist ); |
|---|
| … | … | |
| 415 | 415 | VLC_OBJECT_VOUT, FIND_CHILD )) ) |
|---|
| 416 | 416 | { |
|---|
| 417 | | vlc_object_detach_all( p_vout ); |
|---|
| | 417 | vlc_object_detach( p_vout ); |
|---|
| 418 | 418 | vlc_object_release( p_vout ); |
|---|
| 419 | 419 | vout_DestroyThread( p_vout ); |
|---|
| r5bbe040 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 266 | 266 | if( p_aout->output.p_sys->p_notif ) |
|---|
| 267 | 267 | { |
|---|
| 268 | | vlc_object_detach_all( p_aout->output.p_sys->p_notif ); |
|---|
| | 268 | vlc_object_detach( p_aout->output.p_sys->p_notif ); |
|---|
| 269 | 269 | if( p_aout->output.p_sys->p_notif->b_thread ) |
|---|
| 270 | 270 | { |
|---|
| r19ea8fe |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 289 | 289 | if( p_vout->p_sys->p_event ) |
|---|
| 290 | 290 | { |
|---|
| 291 | | vlc_object_detach_all( p_vout->p_sys->p_event ); |
|---|
| | 291 | vlc_object_detach( p_vout->p_sys->p_event ); |
|---|
| 292 | 292 | |
|---|
| 293 | 293 | /* Kill DirectXEventThread */ |
|---|
| r123b321 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Michel Kaempf <maxx@via.ecp.fr> |
|---|
| … | … | |
| 157 | 157 | else |
|---|
| 158 | 158 | { |
|---|
| 159 | | memset( p_stream, 0, i_len ); |
|---|
| | 159 | p_aout->p_vlc->pf_memset( p_stream, 0, i_len ); |
|---|
| 160 | 160 | } |
|---|
| 161 | 161 | } |
|---|
| r19ea8fe |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 289 | 289 | /* Kill audio output */ |
|---|
| 290 | 290 | 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 ); |
|---|
| 292 | 292 | vlc_object_destroy( p_aout->p_sys->p_aout ); |
|---|
| 293 | 293 | |
|---|
| r7689bc9 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Michel Kaempf <maxx@via.ecp.fr> |
|---|
| … | … | |
| 52 | 52 | { |
|---|
| 53 | 53 | msg_Dbg( p_this, "changing aout type" ); |
|---|
| 54 | | vlc_object_detach_all( p_aout ); |
|---|
| | 54 | vlc_object_detach( p_aout ); |
|---|
| 55 | 55 | vlc_object_release( p_aout ); |
|---|
| 56 | 56 | aout_DestroyThread( p_aout ); |
|---|
| r0ef062c |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 78 | 78 | |
|---|
| 79 | 79 | /* Free structure. */ |
|---|
| 80 | | vlc_object_detach_all( p_aout ); |
|---|
| 81 | 80 | vlc_object_destroy( p_aout ); |
|---|
| 82 | 81 | } |
|---|
| r9000920 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 92 | 92 | { |
|---|
| 93 | 93 | 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] ); |
|---|
| 95 | 95 | vlc_object_destroy( pp_filters[0] ); |
|---|
| 96 | 96 | return -1; |
|---|
| … | … | |
| 102 | 102 | if ( pp_filters[1] == NULL ) |
|---|
| 103 | 103 | { |
|---|
| 104 | | vlc_object_detach_all( pp_filters[0] ); |
|---|
| | 104 | vlc_object_detach( pp_filters[0] ); |
|---|
| 105 | 105 | vlc_object_destroy( pp_filters[0] ); |
|---|
| 106 | 106 | return -1; |
|---|
| … | … | |
| 118 | 118 | msg_Err( p_aout, |
|---|
| 119 | 119 | "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] ); |
|---|
| 121 | 121 | vlc_object_destroy( pp_filters[0] ); |
|---|
| 122 | | vlc_object_detach_all( pp_filters[1] ); |
|---|
| | 122 | vlc_object_detach( pp_filters[1] ); |
|---|
| 123 | 123 | vlc_object_destroy( pp_filters[1] ); |
|---|
| 124 | 124 | return -1; |
|---|
| … | … | |
| 143 | 143 | { |
|---|
| 144 | 144 | 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] ); |
|---|
| 146 | 146 | vlc_object_destroy( pp_filters[i] ); |
|---|
| 147 | 147 | } |
|---|
| r7689bc9 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 246 | 246 | static void DeleteDecoderFifo( decoder_fifo_t * p_fifo ) |
|---|
| 247 | 247 | { |
|---|
| 248 | | vlc_object_detach_all( p_fifo ); |
|---|
| | 248 | vlc_object_detach( p_fifo ); |
|---|
| 249 | 249 | |
|---|
| 250 | 250 | msg_Dbg( p_fifo, "killing decoder for 0x%x, fourcc `%4.4s', %d PES in FIFO", |
|---|
| ra46b300 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 590 | 590 | if( err ) |
|---|
| 591 | 591 | { |
|---|
| 592 | | vlc_object_detach_all( p_intf ); |
|---|
| | 592 | vlc_object_detach( p_intf ); |
|---|
| 593 | 593 | intf_Destroy( p_intf ); |
|---|
| 594 | 594 | return err; |
|---|
| … | … | |
| 630 | 630 | { |
|---|
| 631 | 631 | intf_StopThread( p_intf ); |
|---|
| 632 | | vlc_object_detach_all( p_intf ); |
|---|
| | 632 | vlc_object_detach( p_intf ); |
|---|
| 633 | 633 | vlc_object_release( p_intf ); |
|---|
| 634 | 634 | intf_Destroy( p_intf ); |
|---|
| … | … | |
| 642 | 642 | FIND_CHILD )) ) |
|---|
| 643 | 643 | { |
|---|
| 644 | | vlc_object_detach_all( p_playlist ); |
|---|
| | 644 | vlc_object_detach( p_playlist ); |
|---|
| 645 | 645 | vlc_object_release( p_playlist ); |
|---|
| 646 | 646 | playlist_Destroy( p_playlist ); |
|---|
| … | … | |
| 653 | 653 | while( (p_vout = vlc_object_find( p_vlc, VLC_OBJECT_VOUT, FIND_CHILD )) ) |
|---|
| 654 | 654 | { |
|---|
| 655 | | vlc_object_detach_all( p_vout ); |
|---|
| | 655 | vlc_object_detach( p_vout ); |
|---|
| 656 | 656 | vlc_object_release( p_vout ); |
|---|
| 657 | 657 | vout_DestroyThread( p_vout ); |
|---|
| … | … | |
| 664 | 664 | while( (p_aout = vlc_object_find( p_vlc, VLC_OBJECT_AOUT, FIND_CHILD )) ) |
|---|
| 665 | 665 | { |
|---|
| 666 | | vlc_object_detach_all( (vlc_object_t *)p_aout ); |
|---|
| | 666 | vlc_object_detach( (vlc_object_t *)p_aout ); |
|---|
| 667 | 667 | vlc_object_release( (vlc_object_t *)p_aout ); |
|---|
| 668 | 668 | aout_DeleteInstance( p_aout ); |
|---|
| rf8570a6 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jean-Marc Dressler <polux@via.ecp.fr> |
|---|
| … | … | |
| 115 | 115 | BeApp->p_this = p_this; |
|---|
| 116 | 116 | BeApp->Run(); |
|---|
| 117 | | vlc_object_detach_all( p_this ); |
|---|
| | 117 | vlc_object_detach( p_this ); |
|---|
| 118 | 118 | delete BeApp; |
|---|
| 119 | 119 | } |
|---|
| r7689bc9 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 156 | 156 | module_t * p_next; |
|---|
| 157 | 157 | |
|---|
| 158 | | vlc_object_detach_all( p_this->p_vlc->p_module_bank ); |
|---|
| | 158 | vlc_object_detach( p_this->p_vlc->p_module_bank ); |
|---|
| 159 | 159 | |
|---|
| 160 | 160 | while( p_this->p_vlc->p_module_bank->first != NULL ) |
|---|
| … | … | |
| 939 | 939 | #endif |
|---|
| 940 | 940 | |
|---|
| 941 | | vlc_object_detach_all( p_module ); |
|---|
| | 941 | vlc_object_detach( p_module ); |
|---|
| 942 | 942 | |
|---|
| 943 | 943 | /* Unlink the module from the linked list. */ |
|---|
| … | … | |
| 972 | 972 | { |
|---|
| 973 | 973 | vlc_object_t *p_this = p_module->pp_children[0]; |
|---|
| 974 | | vlc_object_detach_all( p_this ); |
|---|
| | 974 | vlc_object_detach( p_this ); |
|---|
| 975 | 975 | vlc_object_destroy( p_this ); |
|---|
| 976 | 976 | } |
|---|
| r9000920 |
r6e8f950 |
|
| 301 | 301 | (p_symbols)->__vlc_object_release_inner = __vlc_object_release; \ |
|---|
| 302 | 302 | (p_symbols)->__vlc_object_detach_inner = __vlc_object_detach; \ |
|---|
| 303 | | (p_symbols)->__vlc_object_detach_all_inner = __vlc_object_detach_all; \ |
|---|
| 304 | 303 | (p_symbols)->__vlc_object_attach_inner = __vlc_object_attach; \ |
|---|
| 305 | 304 | (p_symbols)->__vlc_dumpstructure_inner = __vlc_dumpstructure; \ |
|---|
| r7689bc9 |
r6e8f950 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 48 | 48 | *****************************************************************************/ |
|---|
| 49 | 49 | static 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 * ); |
|---|
| | 50 | static void vlc_object_detach_inner( vlc_object_t * ); |
|---|
| 51 | 51 | static void vlc_dumpstructure_inner( vlc_object_t *, int, char * ); |
|---|
| | 52 | static int find_index_inner( vlc_object_t *, vlc_object_t **, int ); |
|---|
| | 53 | static void set_attachment_flag( vlc_object_t *, vlc_bool_t ); |
|---|
| 52 | 54 | |
|---|
| 53 | 55 | /***************************************************************************** |
|---|
| … | … | |
| 121 | 123 | |
|---|
| 122 | 124 | p_new->i_refcount = 0; |
|---|
| 123 | | p_new->b_die = 0; |
|---|
| 124 | | p_new->b_error = 0; |
|---|
| | 125 | p_new->b_die |
|---|