Changeset 07743d45ea60d9674cf30205303230ecd1f58220

Show
Ignore:
Timestamp:
22/06/04 23:22:13 (4 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1087939333 +0000
git-parent:

[21261c74fafd51d7eb36948061eae7e6fffc6c8d]

git-author:
Gildas Bazin <gbazin@videolan.org> 1087939333 +0000
Message:

ALL: a bunch of compilation fixes + disabled plugins that don't compile anymore.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.ac

    r57824fa r07743d4  
    894894dnl 
    895895AX_ADD_PLUGINS([dummy rc telnet logger gestures memcpy hotkeys netsync]) 
    896 AX_ADD_PLUGINS([mpgv mpga m4v h264 ps ps2 pva avi asf aac mp4 rawdv nsv real aiff mjpeg]) 
     896AX_ADD_PLUGINS([mpgv mpga m4v h264 ps pva avi asf aac mp4 rawdv nsv real aiff mjpeg]) 
    897897AX_ADD_PLUGINS([cvdsub svcdsub spudec dvbsub mpeg_audio lpcm a52 dts cinepak]) 
    898898AX_ADD_PLUGINS([deinterlace invert adjust wall transform distort clone crop motionblur]) 
     
    903903AX_ADD_PLUGINS([aout_file]) 
    904904AX_ADD_PLUGINS([i420_rgb i420_yuy2 i422_yuy2 i420_ymga]) 
    905 AX_ADD_PLUGINS([id3 m3u playlist export sgimb]) 
     905AX_ADD_PLUGINS([m3u playlist export sgimb]) 
    906906AX_ADD_PLUGINS([rawvideo]) 
    907907AX_ADD_PLUGINS([wav araw demuxsub adpcm a52sys dtssys au]) 
     
    18381838 
    18391839dnl 
    1840 dnl   libid3tag support 
    1841 dnl 
    1842 AC_CHECK_HEADERS(id3tag.h, [ 
    1843   AC_CHECK_HEADERS(zlib.h, [ 
    1844     AX_ADD_LDFLAGS([id3tag],[-lid3tag -lz]) 
    1845     AX_ADD_PLUGINS([id3tag])]) ]) 
     1840dnl   libid3tag support (FIXME!!! doesn't work with new input) 
     1841dnl 
     1842dnl AC_CHECK_HEADERS(id3tag.h, [ 
     1843dnl   AC_CHECK_HEADERS(zlib.h, [ 
     1844dnl     AX_ADD_LDFLAGS([id3tag],[-lid3tag -lz]) 
     1845dnl     AX_ADD_PLUGINS([id3tag])]) ]) 
    18461846 
    18471847dnl 
     
    35133513dnl 
    35143514AC_ARG_ENABLE(slp, 
    3515   [  --enable-slp            SLP service discovery support (default enabled)]) 
    3516 if test "${enable_slp}" != "no
     3515  [  --enable-slp            SLP service discovery support (default disabled)]) 
     3516if test "${enable_slp}" = "yes
    35173517then 
    35183518  AC_ARG_WITH(slp, 
  • modules/codec/cmml/intf.c

    r11e8ae9 r07743d4  
    3434#include <vlc/vlc.h> 
    3535#include <vlc/decoder.h> 
     36#include <vlc/input.h> 
    3637#include <vlc/intf.h> 
    3738#include <vlc/vout.h> 
    3839 
    3940#include <osd.h> 
    40  
    41 #include "stream_control.h" 
    42 #include "input_ext-intf.h" 
    43 #include "input_ext-dec.h" 
    4441 
    4542#include "vlc_keys.h" 
  • modules/codec/theora.c

    r00507b0 r07743d4  
    2727#include <vlc/vlc.h> 
    2828#include <vlc/decoder.h> 
     29#include <vlc/input.h> 
    2930#include <vlc/sout.h> 
    3031 
  • modules/control/netsync.c

    r1b834a3 r07743d4  
    335335    if( !p_input ) return 0; 
    336336 
     337#if 0 
    337338    p_pgrm = p_input->stream.p_selected_program; 
    338339    if( p_pgrm ) return input_ClockGetTS( p_input, p_pgrm, i_pts ); 
     340#else 
     341#warning "This code is currently broken. FIXME!!!" 
     342#endif 
    339343 
    340344    return 0; 
  • modules/demux/Modules.am

    r07a7570 r07743d4  
    1212SOURCES_mkv = mkv.cpp 
    1313SOURCES_livedotcom = livedotcom.cpp 
    14 SOURCES_demux2 = demux2.c 
    1514SOURCES_nsv = nsv.c 
    1615SOURCES_real = real.c 
    1716SOURCES_ts = ts.c ../mux/mpeg/csa.c 
    18 SOURCES_ps2 = ps.c ps.h 
     17SOURCES_ps = ps.c ps.h 
    1918SOURCES_dvdnav = dvdnav.c 
    2019SOURCES_mod = mod.c 
  • modules/demux/m3u.c

    r9717a69 r07743d4  
    5555static int  Activate  ( vlc_object_t * ); 
    5656static void Deactivate( vlc_object_t * ); 
    57 static int  Demux ( input_thread_t * ); 
     57static int  Demux     ( demux_t * ); 
     58static int Control    ( demux_t *, int, va_list ); 
    5859 
    5960/***************************************************************************** 
     
    6263vlc_module_begin(); 
    6364    set_description( _("Playlist metademux") ); 
    64     set_capability( "demux", 180 ); 
     65    set_capability( "demux2", 180 ); 
    6566    set_callbacks( Activate, Deactivate ); 
    6667    add_shortcut( "m3u" ); 
     
    7677static int Activate( vlc_object_t * p_this ) 
    7778{ 
    78     input_thread_t *p_input = (input_thread_t *)p_this; 
    79     char           *psz_ext; 
    80     int             i_type  = TYPE_UNKNOWN; 
    81     int             i_type2 = TYPE_UNKNOWN; 
    82  
    83     /* Initialize access plug-in structures. */ 
    84     if( p_input->i_mtu == 0 ) 
    85     { 
    86         /* Improve speed. */ 
    87         p_input->i_bufsize = INPUT_DEFAULT_BUFSIZE; 
    88     } 
    89  
    90     p_input->pf_demux = Demux; 
    91     p_input->pf_rewind = NULL; 
     79    demux_t *p_demux = (demux_t *)p_this; 
     80    char    *psz_ext; 
     81    int     i_type  = TYPE_UNKNOWN; 
     82    int     i_type2 = TYPE_UNKNOWN; 
     83 
     84    p_demux->pf_control = Control; 
     85    p_demux->pf_demux = Demux; 
    9286 
    9387    /* Check for m3u/asx file extension or if the demux has been forced */ 
    94     psz_ext = strrchr ( p_input->psz_name, '.' ); 
     88    psz_ext = strrchr ( p_demux->psz_path, '.' ); 
    9589 
    9690    if( ( psz_ext && !strcasecmp( psz_ext, ".m3u") ) || 
    97         ( psz_ext && !strcasecmp( psz_ext, ".ram") ) || /* a .ram file can contain a single rtsp link */ 
    98         ( p_input->psz_demux && !strcmp(p_input->psz_demux, "m3u") ) ) 
     91        /* a .ram file can contain a single rtsp link */ 
     92        ( psz_ext && !strcasecmp( psz_ext, ".ram") ) || 
     93        ( p_demux->psz_demux && !strcmp(p_demux->psz_demux, "m3u") ) ) 
    9994    { 
    10095        i_type = TYPE_M3U; 
    10196    } 
    10297    else if( ( psz_ext && !strcasecmp( psz_ext, ".asx") ) || 
    103              ( p_input->psz_demux && !strcmp(p_input->psz_demux, "asx") ) ) 
     98             ( p_demux->psz_demux && !strcmp(p_demux->psz_demux, "asx") ) ) 
    10499    { 
    105100        i_type = TYPE_ASX; 
    106101    } 
    107102    else if( ( psz_ext && !strcasecmp( psz_ext, ".html") ) || 
    108              ( p_input->psz_demux && !strcmp(p_input->psz_demux, "html") ) ) 
     103             ( p_demux->psz_demux && !strcmp(p_demux->psz_demux, "html") ) ) 
    109104    { 
    110105        i_type = TYPE_HTML; 
    111106    } 
    112107    else if( ( psz_ext && !strcasecmp( psz_ext, ".pls") ) || 
    113              ( p_input->psz_demux && !strcmp(p_input->psz_demux, "pls") ) ) 
     108             ( p_demux->psz_demux && !strcmp(p_demux->psz_demux, "pls") ) ) 
    114109    { 
    115110        i_type = TYPE_PLS; 
    116111    } 
    117112    else if( ( psz_ext && !strcasecmp( psz_ext, ".b4s") ) || 
    118              ( p_input->psz_demux && !strcmp(p_input->psz_demux, "b4s") ) ) 
     113             ( p_demux->psz_demux && !strcmp(p_demux->psz_demux, "b4s") ) ) 
    119114    { 
    120115        i_type = TYPE_B4S; 
     
    128123    if( i_type != TYPE_M3U ) 
    129124    { 
    130         byte_t *p_peek; 
    131         int i_size = input_Peek( p_input, &p_peek, MAX_LINE ); 
     125        uint8_t *p_peek; 
     126        int i_size = stream_Peek( p_demux->s, &p_peek, MAX_LINE ); 
    132127        i_size -= sizeof("[playlist]") - 1; 
    133         if ( i_size > 0 ) { 
    134             while ( i_size 
    135                     && strncasecmp( p_peek, "[playlist]", sizeof("[playlist]") - 1 ) 
    136                     && strncasecmp( p_peek, "<html>", sizeof("<html>") - 1 ) 
    137                     && strncasecmp( p_peek, "<asx", sizeof("<asx") - 1 ) 
    138                     && strncasecmp( p_peek, "<?xml", sizeof("<?xml") -1 ) ) 
     128 
     129        if( i_size > 0 ) 
     130        { 
     131            while( i_size && 
     132                   strncasecmp(p_peek, "[playlist]", sizeof("[playlist]") - 1) 
     133                   && strncasecmp( p_peek, "<html>", sizeof("<html>") - 1 ) 
     134                   && strncasecmp( p_peek, "<asx", sizeof("<asx") - 1 ) 
     135                   && strncasecmp( p_peek, "<?xml", sizeof("<?xml") -1 ) ) 
    139136            { 
    140137                p_peek++; 
    141138                i_size--; 
    142139            } 
    143             if ( !i_size ) 
     140            if( !i_size ) 
    144141            { 
    145142                ; 
    146143            } 
    147             else if ( !strncasecmp( p_peek, "[playlist]", sizeof("[playlist]") -1 ) ) 
     144            else if( !strncasecmp( p_peek, "[playlist]", sizeof("[playlist]") -1 ) ) 
    148145            { 
    149146                i_type2 = TYPE_PLS; 
    150147            } 
    151             else if ( !strncasecmp( p_peek, "<html>", sizeof("<html>") -1 ) ) 
     148            else if( !strncasecmp( p_peek, "<html>", sizeof("<html>") -1 ) ) 
    152149            { 
    153150                i_type2 = TYPE_HTML; 
    154151            } 
    155             else if ( !strncasecmp( p_peek, "<asx", sizeof("<asx") -1 ) ) 
     152            else if( !strncasecmp( p_peek, "<asx", sizeof("<asx") -1 ) ) 
    156153            { 
    157154                i_type2 = TYPE_ASX; 
    158155            } 
    159156#if 0 
    160             else if ( !strncasecmp( p_peek, "<?xml", sizeof("<?xml") -1 ) ) 
     157            else if( !strncasecmp( p_peek, "<?xml", sizeof("<?xml") -1 ) ) 
    161158            { 
    162159                i_type2 = TYPE_B4S; 
     
    165162        } 
    166163    } 
    167     if ( i_type == TYPE_UNKNOWN && i_type2 == TYPE_UNKNOWN) 
     164    if( i_type == TYPE_UNKNOWN && i_type2 == TYPE_UNKNOWN) 
    168165    { 
    169166        return VLC_EGENERIC; 
    170167    } 
    171     if ( i_type  != TYPE_UNKNOWN && i_type2 == TYPE_UNKNOWN ) 
     168    if( i_type  != TYPE_UNKNOWN && i_type2 == TYPE_UNKNOWN ) 
    172169    { 
    173170        i_type = TYPE_M3U; 
     
    179176 
    180177    /* Allocate p_m3u */ 
    181     p_input->p_demux_data = malloc( sizeof( demux_sys_t ) ); 
    182     p_input->p_demux_data->i_type = i_type; 
     178    p_demux->p_sys = malloc( sizeof( demux_sys_t ) ); 
     179    p_demux->p_sys->i_type = i_type; 
    183180 
    184181    return VLC_SUCCESS; 
     
    190187static void Deactivate( vlc_object_t *p_this ) 
    191188{ 
    192     input_thread_t *p_input = (input_thread_t *)p_this; 
    193  
    194     free( p_input->p_demux_data ); 
     189    demux_t *p_demux = (demux_t *)p_this; 
     190    free( p_demux->p_sys ); 
    195191} 
    196192 
     
    239235 *    psz_line is \0 terminated 
    240236 *****************************************************************************/ 
    241 static int ParseLine( input_thread_t *p_input, char *psz_line, char *psz_data, 
     237static int ParseLine( demux_t *p_demux, char *psz_line, char *psz_data, 
    242238                      vlc_bool_t *pb_next ) 
    243239{ 
    244     demux_sys_t   *p_m3u = p_input->p_demux_data
    245     char          *psz_bol, *psz_name; 
     240    demux_sys_t *p_m3u = p_demux->p_sys
     241    char        *psz_bol, *psz_name; 
    246242 
    247243    psz_bol = psz_line; 
     
    385381        char *psz_eol; 
    386382 
    387         msg_Dbg( p_input, "b4s line=%s", psz_line ); 
     383        msg_Dbg( p_demux, "b4s line=%s", psz_line ); 
    388384        /* We are dealing with a B4S file from Winamp 3 */ 
    389385 
     
    446442    else 
    447443    { 
    448         msg_Warn( p_input, "unknown file type" ); 
     444        msg_Warn( p_demux, "unknown file type" ); 
    449445        return 0; 
    450446    } 
     
    498494    { 
    499495        /* assume the path is relative to the path of the m3u file. */ 
    500         char *psz_path = strdup( p_input->psz_name ); 
     496        char *psz_path = strdup( p_demux->psz_path ); 
    501497 
    502498#ifndef WIN32 
     
    538534} 
    539535 
    540 static void ProcessLine ( input_thread_t *p_input, playlist_t *p_playlist, 
    541                           char *psz_line, 
    542                           char **ppsz_uri, char **ppsz_name, 
     536static void ProcessLine ( demux_t *p_demux, playlist_t *p_playlist, 
     537                          char *psz_line, char **ppsz_uri, char **ppsz_name, 
    543538                          int *pi_options, char ***pppsz_options, 
    544539                          int *pi_position ) 
     
    547542    vlc_bool_t    b_next; 
    548543 
    549     switch( ParseLine( p_input, psz_line, psz_data, &b_next ) ) 
     544    switch( ParseLine( p_demux, psz_line, psz_data, &b_next ) ) 
    550545    { 
    551546        case 1: 
     
    598593 * Returns -1 in case of error, 0 in case of EOF, 1 otherwise 
    599594 *****************************************************************************/ 
    600 static int Demux ( input_thread_t *p_input
     595static int Demux( demux_t *p_demux
    601596{ 
    602     demux_sys_t   *p_m3u = p_input->p_demux_data; 
    603  
    604     data_packet_t *p_data; 
     597    demux_sys_t   *p_m3u = p_demux->p_sys; 
     598 
    605599    char          psz_line[MAX_LINE]; 
    606     char          *p_buf, eol_tok; 
     600    char          *p_buf = 0, eol_tok; 
    607601    int           i_size, i_bufpos, i_linepos = 0; 
    608602    playlist_t    *p_playlist; 
     
    616610    int           i_position; 
    617611 
    618     p_playlist = (playlist_t *) vlc_object_find( p_input, VLC_OBJECT_PLAYLIST, 
     612    p_playlist = (playlist_t *) vlc_object_find( p_demux, VLC_OBJECT_PLAYLIST, 
    619613                                                 FIND_ANYWHERE ); 
    620614    if( !p_playlist ) 
    621615    { 
    622         msg_Err( p_input, "can't find playlist" ); 
     616        msg_Err( p_demux, "can't find playlist" ); 
    623617        return -1; 
    624618    } 
     
    634628        eol_tok = '\n'; 
    635629 
    636     while( ( i_size = input_SplitBuffer( p_input, &p_data, MAX_LINE ) ) > 0
    637     { 
    638         i_bufpos = 0; p_buf = p_data->p_payload_start; 
     630    while( ( i_size = stream_Read( p_demux->s, p_buf, MAX_LINE ) )
     631    { 
     632        i_bufpos = 0; 
    639633 
    640634        while( i_size ) 
     
    673667            i_linepos = 0; 
    674668 
    675             ProcessLine( p_input, p_playlist, psz_line, &psz_uri, &psz_name, 
     669            ProcessLine( p_demux, p_playlist, psz_line, &psz_uri, &psz_name, 
    676670                         &i_options, &ppsz_options, &i_position ); 
    677671        } 
    678672 
    679         input_DeletePacket( p_input->p_method_data, p_data ); 
     673        free( p_buf ); 
    680674    } 
    681675 
     
    684678        psz_line[i_linepos] = '\0'; 
    685679 
    686         ProcessLine( p_input, p_playlist, psz_line, &psz_uri, &psz_name, 
     680        ProcessLine( p_demux, p_playlist, psz_line, &psz_uri, &psz_name, 
    687681                     &i_options, &ppsz_options, &i_position ); 
    688682 
     
    708702    return 0; 
    709703} 
     704 
     705static int Control( demux_t *p_demux, int i_query, va_list args ) 
     706{ 
     707    return VLC_EGENERIC; 
     708} 
  • modules/demux/mpeg/Modules.am

    rd841ab8 r07743d4  
    11SOURCES_mpeg_system = system.c system.h 
    22SOURCES_m4v = m4v.c 
    3 SOURCES_ps = ps.c 
     3SOURCES_ps_old = ps.c 
    44SOURCES_ts_old = ts.c 
    55SOURCES_ts_old_dvbpsi = ts.c 
  • modules/demux/playlist/m3u.c

    rb3900df r07743d4  
    2929 
    3030#include <vlc/vlc.h> 
     31#include <vlc/input.h> 
    3132#include <vlc/intf.h> 
    3233 
  • modules/demux/playlist/old.c

    rffdca9a r07743d4  
    33 ***************************************************************************** 
    44 * Copyright (C) 2004 VideoLAN 
    5  * $Id: old.c,v 1.2 2004/01/25 20:05:29 hartman Exp
     5 * $Id
    66 * 
    77 * Authors: Cl�nt Stenac <zorglub@videolan.org> 
     
    2828 
    2929#include <vlc/vlc.h> 
     30#include <vlc/input.h> 
    3031#include <vlc/intf.h> 
    3132 
  • modules/demux/playlist/pls.c

    rffdca9a r07743d4  
    33 ***************************************************************************** 
    44 * Copyright (C) 2004 VideoLAN 
    5  * $Id: pls.c,v 1.2 2004/01/25 20:05:29 hartman Exp
     5 * $Id
    66 * 
    77 * Authors: Cl�nt Stenac <zorglub@videolan.org> 
     
    2929 
    3030#include <vlc/vlc.h> 
     31#include <vlc/input.h> 
    3132#include <vlc/intf.h> 
    3233 
  • modules/demux/ps.c

    rffdca9a r07743d4  
    33 ***************************************************************************** 
    44 * Copyright (C) 2004 VideoLAN 
    5  * $Id: ps.c,v 1.2 2004/01/25 20:05:28 hartman Exp
     5 * $Id
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    4747    set_capability( "demux2", 0 ); 
    4848    set_callbacks( Open, Close ); 
    49     add_shortcut( "ps2" ); 
     49    add_shortcut( "ps" ); 
    5050vlc_module_end(); 
    5151