Changeset 85c7ea2e8e6a0d5b3c6acebf3e7d94da695cacd3

Show
Ignore:
Timestamp:
01/05/04 14:07:03 (5 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1073308023 +0000
git-parent:

[1595dc2534196eac95a1488e864292fab033e99c]

git-author:
Clément Stenac <zorglub@videolan.org> 1073308023 +0000
Message:

* ALL: playlist API changes

What may be broken (untested):


  • Theora and Speex decoders
  • some interfaces
  • VCDX and CDDAX access

The problems shouldn't hopefully excess compilation glitches.
(removal of AddExt?, of psz_author, and prototype of Add)

Additionnaly, interfaces that do not support item-change will have
update problems.

* Updated modules list

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/LIST

    r25cada6 r85c7ea2  
    11List of vlc plugins (221) 
    2 $Id: LIST,v 1.18 2003/12/06 22:47:37 jpsaman Exp $ 
     2$Id: LIST,v 1.19 2004/01/05 13:07:02 zorglub Exp $ 
    33 
    44 * a52: A/52 basic parser/packetizer 
     
    3232 * access_output_udp: UDP Network access_output module 
    3333 
     34 * access_tcp: TCP Network access module 
     35 
    3436 * access_udp: UDP Network access module  
    3537 
     
    9395 
    9496 * dts: DTS basic parser/packetizer 
     97  
     98 * dtssys: raw DTS stream input module 
    9599 
    96100 * dtstospdif: Audio converter that encapsulates DTS into S/PDIF 
     
    179183 * i420_rgb_mmx: MMX accelerated version of i420_rgb. 
    180184 
     185 * i420_ymga: YUV to YUC conversion functions 
     186   
    181187 * i420_ymga_mmx: MMX accelerated version of i420_ymga 
    182188 
    183  * i420_ymga: YUV to YUC conversion functions 
     189 * i420_yuy2: planar 4:2:0 YUV to packed YUV conversion functions. 
    184190 
    185191 * i420_yuy2_mmx: MMX accelerated version of i420_yuy2. 
    186192 
    187  * i420_yuy2: planar 4:2:0 YUV to packed YUV conversion functions. 
     193 * i422_yuy2: planar 4:2:2 YUV to packed YUV conversion functions. 
    188194 
    189195 * i422_yuy2_mmx: MMX accelerated version of i422_yuy2. 
    190196 
    191  * i422_yuy2: planar 4:2:2 YUV to packed YUV conversion functions. 
    192  
    193197 * id3: ID3 tag skipper 
    194198  
     
    227231 * memcpy3dn: 3D Now! accelerated version of memcpy. 
    228232 
     233 * memcpy: memory chunk copying module. 
     234 
    229235 * memcpyaltivec: Altivec accelerated version of memcpy. 
    230236 
    231  * memcpy: memory chunk copying module
    232  
     237 * memcpymmx: MMX accelerated version of memcpy
     238  
    233239 * memcpymmxext: MMX EXT accelerated version of memcpy. 
    234240 
    235  * memcpymmx: MMX accelerated version of memcpy. 
    236  
    237241 * mga: video output module for Matrox cards using the Linux mga kernel driver. 
    238242 
     
    250254 
    251255 * mpgatofixed32: MPEG-1 & 2 audio layer I,II,III audio decoder using MAD 
     256  
     257 * mpgv: MPEG-I/II Vid�demuxer 
    252258 
    253259 * mux_asf: ASF muxer 
     
    262268  
    263269 * mux_ps: MPEG program stream muxer 
     270  
     271 * mux_ts: MPEG transport stream muxer 
    264272 
    265273 * mux_ts_dvbpsi: MPEG transport stream muxer using libdvbpsi 
    266274 
    267  * mux_ts: MPEG transport stream muxer 
    268  
    269275 * ncurses: interface module using the ncurses library. 
    270276 
     
    289295 * postprocessing_c: Video Postprocessing module 
    290296 
     297 * postprocessing_mmx: Video Postprocessing module using MMX 
     298  
    291299 * postprocessing_mmxext: Video Postprocessing module using MMX_EXT  
    292300 
    293  * postprocessing_mmx: Video Postprocessing module using MMX 
    294  
    295301 * ps: input module for MPEG PS decapsulation. 
    296302 
     
    299305 * qnx: QNX RTOS plugin 
    300306 
     307 * qt: interface module using the Qt widget set. 
     308 
     309 * qte: video output module for Qt Embedded. 
     310  
    301311 * qte_main: QT Embedded wrapper for gte_main 
    302312 
    303  * qte: video output module for Qt Embedded. 
    304   
    305  * qt: interface module using the Qt widget set. 
    306  
    307313 * quicktime: Quicktime decoder that uses the QT library 
    308314 
     
    349355 * stream_out_gather: stream out module gathering inputs for seemless transitions 
    350356 
     357 * stream_out_rtp: output using the RTP protocol 
     358  
    351359 * stream_out_standard: standard stream output module 
    352   
    353  * stream_out_rtp: output using the RTP protocol 
    354360 
    355361 * stream_out_transcode: audio & video transcoder using ffmpeg 
     
    384390 * trivial_resampler: Simple audio resampler 
    385391 
     392 * ts: input module for MPEG TS decapsulation. 
     393  
    386394 * ts_dvbpsi: same as ts using libdvbpsi 
    387395 
    388  * ts: input module for MPEG TS decapsulation. 
    389  
    390396 * u8tofixed32: unsigned 8 bits to fixed 32 bits audio converter  
    391397 
  • modules/access/cdda/access.c

    r3cbdd39 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000,2003 VideoLAN 
    5  * $Id: access.c,v 1.19 2003/12/28 20:50:20 asmax Exp $ 
     5 * $Id: access.c,v 1.20 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Rocky Bernstein <rocky@panix.com> 
     
    315315    dbg_print( INPUT_DBG_META, "field %s: %s\n", title, str);  \ 
    316316    input_AddInfo( p_cat, _(title), "%s", str );               \ 
     317    playlist_AddInfo( p_playlist, -1, p_cat->psz_name,         \ 
     318                      _(title), "%s" , str );                  \ 
    317319  } 
    318320 
     
    321323{ 
    322324  cdda_data_t *p_cdda = (cdda_data_t *) p_input->p_access_data; 
     325  playlist_t *p_playlist = vlc_object_find( p_input, VLC_OBJECT_PLAYLIST, 
     326                                            FIND_PARENT ); 
    323327  input_info_category_t *p_cat; 
    324328 
    325329  p_cat = input_InfoCategory( p_input, "General" ); 
     330   
    326331 
    327332#ifdef HAVE_LIBCDDB 
     
    364369                   secstotimestr( psz_buffer, i_duration ) ); 
    365370  } 
     371  if( p_playlist ) vlc_object_release( p_playlist ); 
    366372} 
    367373 
     
    656662  dbg_print( INPUT_DBG_META, "mrl: %s, title: %s, duration, %ld, pos %d", 
    657663             psz_mrl, p_title, (long int) i_duration, i_pos ); 
    658  
    659   playlist_AddExt( p_playlist, psz_mrl, p_title, i_duration * 1000000, 
    660                    0, 0, playlist_operation, i_pos ); 
     664  playlist_Add( p_playlist, psz_mrl, p_title, playlist_operation, i_pos ); 
     665 
     666  /* XXX Set the duration ! */ 
    661667 
    662668  p_author = 
     
    665671                   psz_mrl, i_track ); 
    666672 
    667   /* FIXME: This is horrible, but until the playlist interface is fixed up 
    668      something like this has to be done for the "Author" field. 
    669    */ 
    670673  if( i_pos == PLAYLIST_END ) i_pos = p_playlist->i_size - 1; 
    671   free(p_playlist->pp_items[i_pos]->psz_author); 
    672   p_playlist->pp_items[i_pos]->psz_author = strdup(p_author); 
     674  playlist_AddInfo( p_playlist, i_pos, _("General"),_("Author"),p_author); 
    673675 
    674676} 
     
    676678static int 
    677679CDDAFixupPlayList( input_thread_t *p_input, cdda_data_t *p_cdda, 
    678                   const char *psz_source, bool play_single_track) 
     680                  const char *psz_source, bool play_single_track) 
    679681{ 
    680682  int i; 
  • modules/access/http.c

    r481fb38 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001, 2002 VideoLAN 
    5  * $Id: http.c,v 1.49 2004/01/03 18:41:36 rocky Exp $ 
     5 * $Id: http.c,v 1.50 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    351351            p_playlist->pp_items[p_playlist->i_index]->b_autodeletion 
    352352                                                                  = VLC_TRUE; 
    353             playlist_Add( p_playlist, psz_value, NULL, 0
     353            playlist_Add( p_playlist, psz_value, psz_value
    354354                          PLAYLIST_INSERT | PLAYLIST_GO, 
    355355                          p_playlist->i_index + 1 ); 
  • modules/access/slp.c

    r84b846b r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001, 2002 VideoLAN 
    5  * $Id: slp.c,v 1.17 2003/10/29 17:32:54 zorglub Exp $ 
     5 * $Id: slp.c,v 1.18 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Lo�Minier <lool@videolan.org> 
     
    188188    p_playlist_item->psz_name = NULL; 
    189189    p_playlist_item->psz_uri  = strdup( psz_s ); 
    190     p_playlist_item->i_type = 0; 
    191190    p_playlist_item->i_status = 0; 
    192191    p_playlist_item->b_autodeletion = VLC_FALSE; 
    193     p_playlist_item->i_options = 0; 
    194     p_playlist_item->ppsz_options = 0; 
    195     p_playlist_item->psz_author = NULL; 
     192    p_playlist_item->i_duration = -1; 
    196193    p_playlist_item->i_group = i_group; 
    197194    p_playlist_item->b_enabled = VLC_TRUE; 
     195    p_playlist_item->pp_categories = NULL; 
     196    p_playlist_item->i_categories = NULL; 
    198197 
    199198    /* search the description of the stream */ 
  • modules/access/vcdx/access.c

    r4fc0ccf r85c7ea2  
    55 ***************************************************************************** 
    66 * Copyright (C) 2000, 2003, 2004 VideoLAN 
    7  * $Id: access.c,v 1.14 2004/01/03 20:43:24 rocky Exp $ 
     7 * $Id: access.c,v 1.15 2004/01/05 13:07:02 zorglub Exp $ 
    88 * 
    99 * Authors: Rocky Bernstein <rocky@panix.com> 
     
    980980  if ( str ) {                                                                \ 
    981981    dbg_print( INPUT_DBG_META, "field: %s: %s\n", title, str);                \ 
    982     input_AddInfo( p_cat, _(title), "%s", str );                        \ 
     982    input_AddInfo( p_cat, _(title), "%s", str );                              \ 
     983    playlist_AddInfo( p_playlist, -1, p_cat->psz_name, _(title),              \ 
     984                      "%s",str ); 
    983985  } 
    984986 
    985987#define meta_info_add_num(title, num) \ 
    986   dbg_print( INPUT_DBG_META, "field %s: %d\n", title, num);               
     988  dbg_print( INPUT_DBG_META, "field %s: %d\n", title, num);                   
    987989  input_AddInfo( p_cat, _(title), "%d", num );                                \ 
     990  playlist_AddInfo( p_playlist, -1, p_cat->psz_name, _(title),                \ 
     991                    "%d",num ); 
    988992 
    989993static void InformationCreate( input_thread_t *p_input  ) 
     
    993997  unsigned int last_entry = 0; 
    994998  input_info_category_t *p_cat; 
     999<<<<<<< access.c 
     1000  playlist_item_t *p_playlist = vlc_object_find( p_input, VLC_OBJECT_PLAYLIST, 
     1001                                                 FIND_PARENT ); 
     1002======= 
    9951003  track_t i_track; 
     1004>>>>>>> 1.14 
    9961005 
    9971006  p_cat = input_InfoCategory( p_input, "General" ); 
     
    10251034             vcdinfo_get_num_tracks(p_vcd->vcd)); 
    10261035 
     1036<<<<<<< access.c 
     1037  if( p_playlist) vlc_object_release( p_playlist ); 
     1038======= 
    10271039  /* Spit out track information. Could also include MSF info. 
    10281040   */ 
     
    10481060    meta_info_add_num( _("Last Entry Point"),  last_entry-1 ); 
    10491061  } 
     1062>>>>>>> 1.14 
    10501063} 
    10511064 
     
    12731286  p_title = 
    12741287    VCDFormatStr( p_input, p_vcd, 
    1275                   config_GetPsz( p_input, MODULE_STRING "-title-format" ), 
    1276                   psz_mrl, itemid ); 
    1277  
    1278   playlist_AddExt( p_playlist, psz_mrl, p_title, i_duration, 
    1279                    0, 0, playlist_operation, i_pos ); 
     1288          config_GetPsz( p_input, MODULE_STRING "-title-format" ), 
     1289          psz_mrl, itemid ); 
     1290   
     1291  playlist_Add( p_playlist, psz_mrl, p_title, playlist_operation, i_pos ); 
    12801292 
    12811293  p_author = 
    12821294    VCDFormatStr( p_input, p_vcd, 
    1283                   config_GetPsz( p_input, MODULE_STRING "-author-format" ), 
    1284                   psz_mrl, itemid ); 
     1295         config_GetPsz( p_input, MODULE_STRING "-author-format" ), 
     1296         psz_mrl, itemid ); 
    12851297 
    12861298  /* FIXME: This is horrible, but until the playlist interface is fixed up 
     
    12881300   */ 
    12891301  if( i_pos == PLAYLIST_END ) i_pos = p_playlist->i_size - 1; 
    1290   free(p_playlist->pp_items[i_pos]->psz_author); 
    1291   p_playlist->pp_items[i_pos]->psz_author = strdup(p_author); 
     1302  playlist_AddInfo(p_playlist, i_pos, _("General"), _("Author"), "%s",p_author); 
    12921303} 
    12931304 
  • modules/codec/speex.c

    r4219568 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2003 VideoLAN 
    5  * $Id: speex.c,v 1.8 2003/12/22 02:24:51 sam Exp $ 
     5 * $Id: speex.c,v 1.9 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    2727#include <vlc/vlc.h> 
    2828#include <vlc/decoder.h> 
     29#include "vlc_playlist.h" 
    2930 
    3031#include <ogg/ogg.h> 
     
    462463    input_info_category_t *p_cat = 
    463464        input_InfoCategory( p_input, _("Speex comment") ); 
     465    playlist_t *p_playlist = vlc_object_find( p_dec, VLC_OBJECT_PLAYLIST, 
     466                                              FIND_ANYWHERE ); 
    464467 
    465468    char *p_buf = (char *)p_oggpacket->packet; 
     
    470473    input_AddInfo( p_cat, _("Mode"), "%s%s", 
    471474                   p_mode->modeName, p_sys->p_header->vbr ? " VBR" : "" ); 
     475    playlist_AddInfo( p_playlist, -1, _("Speex comment") , _("Mode"), "%s%s", 
     476                    p_mode->modeName, p_sys->p_header->vbr ? " VBR" : "" ); 
    472477 
    473478    if( p_oggpacket->bytes < 8 ) 
     
    485490 
    486491    input_AddInfo( p_cat, p_buf, "" ); 
     492    playlist_AddInfo( p_playlist, -1, _("Speex comment") , p_buf , "" ); 
     493 
     494    if( p_playlist ) vlc_object_release( p_playlist ); 
    487495 
    488496    /* TODO: finish comments parsing */ 
  • modules/codec/theora.c

    r4219568 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: theora.c,v 1.21 2003/12/22 02:24:51 sam Exp $ 
     5 * $Id: theora.c,v 1.22 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    2828#include <vlc/decoder.h> 
    2929#include "input_ext-plugins.h" 
     30#include "vlc_playlist.h" 
    3031 
    3132#include <ogg/ogg.h> 
     
    338339    input_info_category_t *p_cat = 
    339340        input_InfoCategory( p_input, _("Theora comment") ); 
     341    playlist_t *p_playlist = vlc_object_find( p_dec, VLC_OBJECT_PLAYLIST, 
     342                                              FIND_ANYWHERE ); 
    340343    int i = 0; 
    341344    char *psz_name, *psz_value, *psz_comment; 
     
    355358            psz_value++; 
    356359            input_AddInfo( p_cat, psz_name, psz_value ); 
     360            playlist_AddInfo( p_playlist, -1, _("Theora comment") , 
     361                              psz_name, psz_value ); 
    357362        } 
    358363        free( psz_comment ); 
    359364        i++; 
    360365    } 
     366    if( p_playlist) vlc_object_release( p_playlist ); 
    361367} 
    362368 
  • modules/codec/vorbis.c

    r4219568 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001-2003 VideoLAN 
    5  * $Id: vorbis.c,v 1.28 2003/12/22 02:24:51 sam Exp $ 
     5 * $Id: vorbis.c,v 1.29 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    2727#include <vlc/vlc.h> 
    2828#include <vlc/decoder.h> 
     29#include "vlc_playlist.h" 
    2930 
    3031#include <ogg/ogg.h> 
     
    454455    input_info_category_t *p_cat = 
    455456        input_InfoCategory( p_input, _("Vorbis comment") ); 
     457    playlist_t *p_playlist = vlc_object_find( p_dec, VLC_OBJECT_PLAYLIST, 
     458                                              FIND_ANYWHERE ); 
    456459    int i = 0; 
    457460    char *psz_name, *psz_value, *psz_comment; 
     
    471474            psz_value++; 
    472475            input_AddInfo( p_cat, psz_name, psz_value ); 
     476            playlist_AddInfo( p_playlist, -1, _("Vorbis comment") , 
     477                              psz_name, psz_value ); 
    473478        } 
    474479        free( psz_comment ); 
    475480        i++; 
    476481    } 
     482    if( p_playlist ) vlc_object_release( p_playlist ); 
    477483} 
    478484 
  • modules/control/corba/corba.c

    reb505a2 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: corba.c,v 1.2 2003/07/23 01:13:47 gbazin Exp $ 
     5 * $Id: corba.c,v 1.3 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Olivier Aubert <oaubert at lisi dot univ-lyon1 dot fr> 
     
    561561    } 
    562562 
    563   playlist_Add (p_playlist, psz_file, 0, 0, PLAYLIST_REPLACE, 0); 
     563  playlist_Add (p_playlist, psz_file, psz_file , PLAYLIST_REPLACE, 0); 
    564564  vlc_object_release( p_playlist ); 
    565565 
  • modules/control/http.c

    ra58b4dc r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: http.c,v 1.41 2003/12/21 23:32:58 sam Exp $ 
     5 * $Id: http.c,v 1.42 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    29492949        p_item->psz_name   = mrl; 
    29502950        p_item->psz_uri    = strdup( mrl ); 
    2951         p_item->psz_author = strdup( "" ); 
    29522951        p_item->i_duration = -1; 
    2953         p_item->i_type = 0; 
    29542952        p_item->i_status = 0; 
    29552953        p_item->b_autodeletion = VLC_FALSE; 
     
    29572955        p_item->i_group = PLAYLIST_TYPE_MANUAL; 
    29582956 
    2959         p_item->ppsz_options = NULL; 
    2960         p_item->i_options = i_options; 
    2961  
    2962         if( i_options ) 
    2963         { 
    2964             p_item->ppsz_options = ppsz_options; 
     2957        for( i = 0 ; i< i_options ; i++ ) 
     2958        { 
     2959            playlist_AddItemOption( p_item, ppsz_options[i] ); 
    29652960        } 
    29662961 
  • modules/control/rc/rc.c

    r5ca0ebc r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: rc.c,v 1.40 2003/12/22 14:32:55 sam Exp $ 
     5 * $Id: rc.c,v 1.41 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Author: Peter Surda <shurdeek@panorama.sth.ac.at> 
     
    656656    { 
    657657        printf( "trying to add %s to playlist\n", newval.psz_string ); 
    658         playlist_Add( p_playlist, newval.psz_string, NULL, 0
     658        playlist_Add( p_playlist, newval.psz_string, newval.psz_string
    659659                      PLAYLIST_GO|PLAYLIST_APPEND, PLAYLIST_END ); 
    660660    } 
  • modules/demux/m3u.c

    r92c1ab4 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: m3u.c,v 1.24 2003/08/14 13:02:55 sigmunau Exp $ 
     5 * $Id: m3u.c,v 1.25 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> 
     
    552552    if( b_next && *ppsz_uri ) 
    553553    { 
    554         playlist_AddExt( p_playlist, *ppsz_uri, 
    555                          *ppsz_name ? *ppsz_name : *ppsz_uri, -1,  
    556                          0, 0, PLAYLIST_INSERT, *pi_position ); 
     554        playlist_Add( p_playlist, *ppsz_uri, 
     555                         *ppsz_name ? *ppsz_name : *ppsz_uri, 
     556                          PLAYLIST_INSERT, *pi_position ); 
    557557        (*pi_position)++; 
    558558        if( *ppsz_name ) 
     
    661661        if( psz_uri ) 
    662662        { 
    663             playlist_Add( p_playlist, psz_uri, 0, 0
     663            playlist_Add( p_playlist, psz_uri, psz_uri
    664664                          PLAYLIST_INSERT, i_position ); 
    665665        } 
  • modules/demux/mkv.cpp

    r4219568 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: mkv.cpp,v 1.50 2003/12/22 02:24:52 sam Exp $ 
     5 * $Id: mkv.cpp,v 1.51 2004/01/05 13:07:02 zorglub Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    21672167    demux_sys_t           *p_sys = p_input->p_demux_data; 
    21682168    input_info_category_t *p_cat; 
     2169    playlist_t            *p_playlist; 
    21692170    int                   i_track; 
    21702171 
    21712172    p_cat = input_InfoCategory( p_input, "Matroska" ); 
     2173    p_playlist = (playlist_t*)vlc_object_find( p_input, VLC_OBJECT_PLAYLIST, FIND_PARENT ); 
    21722174    if( p_sys->f_duration > 1000.1 ) 
    21732175    { 
  • modules/demux/mp4/mp4.c

    r051ce62 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: mp4.c,v 1.47 2004/01/05 12:37:52 jlj Exp $ 
     5 * $Id: mp4.c,v 1.48 2004/01/05 13:07:02 zorglub Exp $ 
    66 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
    77 * 
     
    217217                    { 
    218218                        msg_Dbg( p_input, "adding ref = `%s'", psz_ref ); 
    219                         playlist_Add( p_playlist, psz_ref, 0, 0
     219                        playlist_Add( p_playlist, psz_ref, psz_ref
    220220                                      PLAYLIST_APPEND, PLAYLIST_END ); 
    221221                    } 
     
    239239                        strcat( psz_absolute, psz_ref ); 
    240240                        msg_Dbg( p_input, "adding ref = `%s'", psz_absolute ); 
    241                         playlist_Add( p_playlist, psz_absolute, 0, 0
     241                        playlist_Add( p_playlist, psz_absolute, psz_absolute
    242242                                      PLAYLIST_APPEND, PLAYLIST_END ); 
    243243                    } 
  • modules/gui/beos/VlcWrapper.cpp

    rc3638c4 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: VlcWrapper.cpp,v 1.40 2003/12/04 10:25:47 gbazin Exp $ 
     5 * $Id: VlcWrapper.cpp,v 1.41 2004/01/05 13:07:03 zorglub Exp $ 
    66 * 
    77 * Authors: Florian G. Pflug <fgp@phlo.org> 
     
    366366            { 
    367367                playlist_Add( p_playlist, o_file->String(), 
    368                               0, 0, mode, index ); 
     368                     o_file->String(), mode, index ); 
    369369                if ( mode == PLAYLIST_INSERT ) 
    370370                    index++; 
     
    389389    else 
    390390        o_device.Prepend( "dvdold:" ); 
    391     playlist_Add( p_playlist, o_device.String(), 0, 0
     391    playlist_Add( p_playlist, o_device.String(), o_device.String()
    392392                  PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); 
    393393} 
  • modules/gui/gtk/open.c

    r5ca0ebc r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2001, 2003 VideoLAN 
    5  * $Id: open.c,v 1.22 2003/12/22 14:32:56 sam Exp $ 
     5 * $Id: open.c,v 1.23 2004/01/05 13:07:03 zorglub Exp $ 
    66 * 
    77 * Authors: Sam Hocevar <sam@zoy.org> 
     
    651651    psz_target = gtk_entry_get_text( GTK_ENTRY( lookup_widget( 
    652652                                       GTK_WIDGET(button), "entry_open" ) ) ); 
    653     playlist_Add( p_playlist, (char*)psz_target, 0, 0
     653    playlist_Add( p_playlist, (char*)psz_target, (char*)psz_target
    654654                  PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); 
    655655 
  • modules/gui/gtk/playlist.c

    r5ca0ebc r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: playlist.c,v 1.8 2003/12/22 14:32:56 sam Exp $ 
     5 * $Id: playlist.c,v 1.9 2004/01/05 13:07:03 zorglub Exp $ 
    66 * 
    77 * Authors: Pierre Baillet <oct@zoy.org> 
     
    623623                   the item where they are suppose to go but, hey 
    624624                   this works :P (btw, you are really nasty too) */ 
    625                g_list_nth_data( p_list, i_dummy ), 0, 0, 
     625               g_list_nth_data( p_list, i_dummy ), 
     626               g_list_nth_data( p_list, i_dummy ), 
    626627               i_dummy == 0 ? PLAYLIST_INSERT | PLAYLIST_GO : PLAYLIST_INSERT, 
    627628               i_pos == PLAYLIST_END ? PLAYLIST_END : ( i_pos + i_dummy ) ); 
  • modules/gui/kde/interface.cpp

    rc3638c4 r85c7ea2  
    209209        { 
    210210            fileOpenRecent->addURL( url ); 
    211             playlist_Add( p_playlist, url.path(), 0, 0, 
     211            playlist_Add( p_playlist, url.path(), url.path(),  
    212212                          PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); 
    213213            vlc_object_release( p_playlist ); 
     
    537537        { 
    538538            // add it to playlist 
    539             playlist_Add( p_playlist, source.latin1(), 0, 0
     539            playlist_Add( p_playlist, source.latin1(), source.latin1()
    540540                          PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); 
    541541            vlc_object_release( p_playlist ); 
     
    563563        { 
    564564            // add it to playlist 
    565             playlist_Add( p_playlist, source.latin1(), 0, 0
     565            playlist_Add( p_playlist, source.latin1(), source.latin1()
    566566                          PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); 
    567567            vlc_object_release( p_playlist ); 
     
    665665            { 
    666666                fileOpenRecent->addURL( *i ); 
    667                 playlist_Add( p_playlist, (*i).path(), 0, 0
     667                playlist_Add( p_playlist, (*i).path(), (*i).path()
    668668                          PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); 
    669669            } 
  • modules/gui/macosx/applescript.m

    reb505a2 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002-2003 VideoLAN 
    5  * $Id: applescript.m,v 1.4 2003/07/23 01:13:47 gbazin Exp $ 
     5 * $Id: applescript.m,v 1.5 2004/01/05 13:07:03 zorglub Exp $ 
    66 * 
    77 * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net> 
     
    5757             
    5858            playlist_Add( p_playlist, [o_urlString fileSystemRepresentation], 
    59                           0, 0, i_mode, PLAYLIST_END ); 
     59                          [o_urlString fileSystemRepresentation], 
     60                          i_mode, PLAYLIST_END ); 
    6061 
    6162            o_url = [NSURL fileURLWithPath: o_urlString]; 
  • modules/gui/macosx/playlist.m

    r716dd47 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002-2003 VideoLAN 
    5  * $Id: playlist.m,v 1.49 2003/12/15 14:25:43 hartman Exp $ 
     5 * $Id: playlist.m,v 1.50 2004/01/05 13:07:03 zorglub Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
     
    307307            p_playlist->pp_items[i_current]->psz_name]; 
    308308        o_current_author = [NSString stringWithUTF8String:  
    309             p_playlist->pp_items[i_current]->psz_author]; 
     309            playlist_GetInfo(p_playlist, i_current ,_("General"),_("Author") )]; 
    310310        vlc_mutex_unlock( &p_playlist->object_lock ); 
    311311 
     
    395395        } 
    396396     
    397         playlist_AddExt( p_playlist, [o_url fileSystemRepresentation], [o_name UTF8String], -1,  
     397        playlist_Add( p_playlist, [o_url fileSystemRepresentation],  
     398                      [o_name UTF8String], i_mode,  
     399                      i_position == -1 ? PLAYLIST_END : i_position + i_item); 
     400/*-1,  
    398401            (ppsz_options != NULL ) ? (const char **)ppsz_options : 0, i_total_options, 
    399             i_mode, i_position == -1 ? PLAYLIST_END : i_position + i_item); 
     402            i_mode, i_position == -1 ? PLAYLIST_END : i_position + i_item);*/ 
    400403     
    401404        /* clean up */ 
     
    510513        vlc_mutex_lock( &p_playlist->object_lock ); 
    511514        o_value = [NSString stringWithUTF8String:  
    512             p_playlist->pp_items[i_row]->psz_author];  
     515            playlist_GetInfo(p_playlist, i_row ,_("General"),_("Author") )]; 
    513516        vlc_mutex_unlock( &p_playlist->object_lock ); 
    514517    } 
  • modules/gui/pda/pda_callbacks.c

    r43e9ac1 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2001 VideoLAN 
    5  * $Id: pda_callbacks.c,v 1.23 2003/12/07 18:58:38 jpsaman Exp $ 
     5 * $Id: pda_callbacks.c,v 1.24 2004/01/05 13:07:03 zorglub Exp $ 
    66 * 
    77 * Authors: Jean-Paul Saman <jpsaman@wxs.nl> 
     
    9292    intf_thread_t *p_intf = GtkGetIntf( widget ); 
    9393    playlist_t    *p_playlist; 
     94    int           i , i_id , i_pos; 
    9495    GtkTreeView   *p_tvplaylist = NULL; 
    9596 
     
    133134#endif 
    134135            { 
    135                 playlist_Add( p_playlist, (const char*)name, (const char**)ppsz_options, i_size, 
     136                i_id = playlist_Add( p_playlist, (const char*)name, 
     137                                (const char*)name, 
    136138                              PLAYLIST_APPEND, PLAYLIST_END ); 
     139 
     140                i_pos = playlist_GetPositionById( p_playlist, i_id ); 
     141 
     142                for( i = 0 ; i< i_size ; i++ ) 
     143                { 
     144                    playlist_AddOption( p_playlist, i_pos , ppsz_options[i] ); 
     145                } 
    137146            } 
    138147 
     
    659668 
    660669    i_pos = snprintf( &v4l_mrl[0], 6, "v4l"); 
    661     v4l_mrl[5]='\0';  
     670    v4l_mrl[5]='\0'; 
    662671 
    663672    entryV4LChannel    = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryV4LChannel" ); 
  • modules/gui/qt/intf.cpp

    rc3638c4 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999, 2000 VideoLAN 
    5  * $Id: intf.cpp,v 1.5 2003/12/04 10:25:47 gbazin Exp $ 
     5 * $Id: intf.cpp,v 1.6 2004/01/05 13:07:03 zorglub Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    300300        } 
    301301 
    302         playlist_Add( p_playlist, file.latin1(), 0, 0
     302        playlist_Add( p_playlist, file.latin1(), file.latin1()
    303303                      PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); 
    304304        vlc_object_release( p_playlist ); 
  • modules/gui/skins/src/vlcproc.cpp

    rffe7cd8 r85c7ea2  
    33 ***************************************************************************** 
    44 * Copyright (C) 2003 VideoLAN 
    5  * $Id: vlcproc.cpp,v 1.52 2003/10/23 16:00:48 gbazin Exp $ 
     5 * $Id: vlcproc.cpp,v 1.53 2004/01/05 13:07:03 zorglub Exp $ 
    66 * 
    77 * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> 
     
    445445        { 
    446446            // Enqueue