Changeset 25ad0cdef1cfe031218aae58017a5124335f55d0

Show
Ignore:
Timestamp:
01/29/08 14:55:19 (7 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1201614919 +0000
git-parent:

[51bc0c4a0c7875d64cacce29d057a0dd600d7620]

git-author:
Rafaël Carré <funman@videolan.org> 1201614919 +0000
Message:

mux: fix warnings, fix Control() indentation

avi/avi_HeaderAdd_str{h,f}(): removes unused parameter
mp4/Convert{SUBT,AVC1}() GetD263Tag() Get{Text,Vide}Box(): same
mpeg/ts/BufferChainClean(): same
ogg/OggCreate{Header,Footer}(): same

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/mux/asf.c

    r99fab90 r25ad0cd  
    272272 
    273273    /* rewrite header */ 
    274     if( !sout_AccessOutSeek( p_mux->p_access, 0 )
     274    if( sout_AccessOutSeek( p_mux->p_access, 0 ) == VLC_SUCCESS
    275275    { 
    276276        out = asf_header_create( p_mux, VLC_FALSE ); 
     
    582582static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) 
    583583{ 
     584    VLC_UNUSED(p_input); 
    584585    msg_Dbg( p_mux, "removing input" ); 
    585586    return VLC_SUCCESS; 
  • modules/mux/avi.c

    r99fab90 r25ad0cd  
    219219static int Control( sout_mux_t *p_mux, int i_query, va_list args ) 
    220220{ 
     221    VLC_UNUSED(p_mux); 
    221222    vlc_bool_t *pb_bool; 
    222223    char **ppsz; 
     
    405406    sout_mux_sys_t  *p_sys = p_mux->p_sys; 
    406407    avi_stream_t    *p_stream; 
    407     int i_stream; 
    408     int i; 
     408    int i_stream, i; 
    409409 
    410410    if( p_sys->b_write_header ) 
     
    661661    AVI_BOX_EXIT( 0 ); 
    662662} 
    663 static int avi_HeaderAdd_strh( sout_mux_t   *p_mux, 
    664                                buffer_out_t *p_bo, 
    665                                avi_stream_t *p_stream ) 
     663static int avi_HeaderAdd_strh( buffer_out_t *p_bo, avi_stream_t *p_stream ) 
    666664{ 
    667665    AVI_BOX_ENTER( "strh" ); 
     
    730728} 
    731729 
    732 static int avi_HeaderAdd_strf( sout_mux_t *p_mux, 
    733                                buffer_out_t *p_bo, 
    734                                avi_stream_t *p_stream ) 
     730static int avi_HeaderAdd_strf( buffer_out_t *p_bo, avi_stream_t *p_stream ) 
    735731{ 
    736732    AVI_BOX_ENTER( "strf" ); 
     
    776772} 
    777773 
    778 static int avi_HeaderAdd_strl( sout_mux_t *p_mux, 
    779                                buffer_out_t *p_bo, 
    780                                avi_stream_t *p_stream ) 
     774static int avi_HeaderAdd_strl( buffer_out_t *p_bo, avi_stream_t *p_stream ) 
    781775{ 
    782776    AVI_BOX_ENTER_LIST( "strl" ); 
    783777 
    784     avi_HeaderAdd_strh( p_mux, p_bo, p_stream ); 
    785     avi_HeaderAdd_strf( p_mux, p_bo, p_stream ); 
     778    avi_HeaderAdd_strh( p_bo, p_stream ); 
     779    avi_HeaderAdd_strf( p_bo, p_stream ); 
    786780 
    787781    AVI_BOX_EXIT( 0 ); 
     
    813807    for( i_stream = 0,i_maxbytespersec = 0; i_stream < p_sys->i_streams; i_stream++ ) 
    814808    { 
    815         avi_HeaderAdd_strl( p_mux, &bo, &p_sys->stream[i_stream] ); 
     809        avi_HeaderAdd_strl( &bo, &p_sys->stream[i_stream] ); 
    816810    } 
    817811 
  • modules/mux/dummy.c

    r99fab90 r25ad0cd  
    104104static int Control( sout_mux_t *p_mux, int i_query, va_list args ) 
    105105{ 
     106    VLC_UNUSED(p_mux); 
    106107    vlc_bool_t *pb_bool; 
    107108 
    108    switch( i_query ) 
    109    
    110        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
    111            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    112            *pb_bool = VLC_TRUE; 
    113            return VLC_SUCCESS; 
     109    switch( i_query ) 
     110   
     111        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
     112            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     113            *pb_bool = VLC_TRUE; 
     114            return VLC_SUCCESS; 
    114115 
    115        case MUX_GET_ADD_STREAM_WAIT: 
    116            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    117            *pb_bool = VLC_FALSE; 
    118            return VLC_SUCCESS; 
     116        case MUX_GET_ADD_STREAM_WAIT: 
     117            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     118            *pb_bool = VLC_FALSE; 
     119            return VLC_SUCCESS; 
    119120 
    120        case MUX_GET_MIME:   /* Unknown */ 
     121        case MUX_GET_MIME:   /* Unknown */ 
    121122        default: 
    122123            return VLC_EGENERIC; 
     
    126127static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input ) 
    127128{ 
     129    VLC_UNUSED(p_input); 
    128130    msg_Dbg( p_mux, "adding input" ); 
    129131    return VLC_SUCCESS; 
     
    132134static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) 
    133135{ 
     136    VLC_UNUSED(p_input); 
    134137    msg_Dbg( p_mux, "removing input" ); 
    135138    return VLC_SUCCESS; 
  • modules/mux/mp4.c

    r99fab90 r25ad0cd  
    174174static bo_t *GetMoovBox( sout_mux_t *p_mux ); 
    175175 
    176 static block_t *ConvertSUBT( sout_mux_t *, mp4_stream_t *, block_t *); 
    177 static block_t *ConvertAVC1( sout_mux_t *, mp4_stream_t *, block_t * ); 
     176static block_t *ConvertSUBT( block_t *); 
     177static block_t *ConvertAVC1( block_t * ); 
    178178 
    179179/***************************************************************************** 
     
    367367static int Control( sout_mux_t *p_mux, int i_query, va_list args ) 
    368368{ 
     369    VLC_UNUSED(p_mux); 
    369370    vlc_bool_t *pb_bool; 
    370371 
    371    switch( i_query ) 
    372    
    373        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
    374            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    375            *pb_bool = VLC_FALSE; 
    376            return VLC_SUCCESS; 
    377  
    378        case MUX_GET_ADD_STREAM_WAIT: 
    379            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    380            *pb_bool = VLC_TRUE; 
    381            return VLC_SUCCESS; 
    382  
    383        case MUX_GET_MIME:   /* Not needed, as not streamable */ 
     372    switch( i_query ) 
     373   
     374        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
     375            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     376            *pb_bool = VLC_FALSE; 
     377            return VLC_SUCCESS; 
     378 
     379        case MUX_GET_ADD_STREAM_WAIT: 
     380            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     381            *pb_bool = VLC_TRUE; 
     382            return VLC_SUCCESS; 
     383 
     384        case MUX_GET_MIME:   /* Not needed, as not streamable */ 
    384385        default: 
    385386            return VLC_EGENERIC; 
    386    
     387   
    387388} 
    388389 
     
    445446static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) 
    446447{ 
     448    VLC_UNUSED(p_input); 
    447449    msg_Dbg( p_mux, "removing input" ); 
    448450    return VLC_SUCCESS; 
     
    452454{ 
    453455    mtime_t i_dts; 
    454     int     i_stream; 
    455     int     i; 
     456    int     i_stream, i; 
    456457 
    457458    for( i = 0, i_dts = 0, i_stream = -1; i < p_mux->i_nb_inputs; i++ ) 
     
    515516        if( p_stream->fmt.i_codec == VLC_FOURCC( 'h', '2', '6', '4' ) ) 
    516517        { 
    517             p_data = ConvertAVC1( p_mux, p_stream, p_data ); 
     518            p_data = ConvertAVC1( p_data ); 
    518519        } 
    519520        else if( p_stream->fmt.i_codec == VLC_FOURCC( 's', 'u', 'b', 't' ) ) 
    520521        { 
    521             p_data = ConvertSUBT( p_mux, p_stream, p_data ); 
     522            p_data = ConvertSUBT( p_data ); 
    522523        } 
    523524        if( p_data == NULL ) goto again; 
     
    654655 * 
    655656 *****************************************************************************/ 
    656 static block_t *ConvertSUBT( sout_mux_t *p_mux, mp4_stream_t *tk, block_t *p_block ) 
     657static block_t *ConvertSUBT( block_t *p_block ) 
    657658{ 
    658659    p_block = block_Realloc( p_block, 2, p_block->i_buffer ); 
     
    668669} 
    669670 
    670 static block_t *ConvertAVC1( sout_mux_t *p_mux, mp4_stream_t *tk, block_t *p_block ) 
     671static block_t *ConvertAVC1( block_t *p_block ) 
    671672{ 
    672673    uint8_t *last = p_block->p_buffer;  /* Assume it starts with 0x00000001 */ 
     
    883884} 
    884885 
    885 static bo_t *GetD263Tag( mp4_stream_t *p_stream
     886static bo_t *GetD263Tag( void
    886887{ 
    887888    bo_t *d263; 
     
    11851186} 
    11861187 
    1187 static bo_t *GetVideBox( sout_mux_t *p_mux, mp4_stream_t *p_stream ) 
     1188static bo_t *GetVideBox( mp4_stream_t *p_stream ) 
    11881189{ 
    11891190 
     
    12791280    case VLC_FOURCC('H','2','6','3'): 
    12801281        { 
    1281             bo_t *d263 = GetD263Tag( p_stream ); 
     1282            bo_t *d263 = GetD263Tag(); 
    12821283 
    12831284            box_fix( d263 ); 
     
    13081309} 
    13091310 
    1310 static bo_t *GetTextBox( sout_mux_t *p_mux, mp4_stream_t *p_stream
     1311static bo_t *GetTextBox( void
    13111312{ 
    13121313 
     
    13661367    else if( p_stream->fmt.i_cat == VIDEO_ES ) 
    13671368    { 
    1368         bo_t *vide = GetVideBox( p_mux, p_stream ); 
     1369        bo_t *vide = GetVideBox( p_stream ); 
    13691370        box_gather( stsd, vide ); 
    13701371    } 
    13711372    else if( p_stream->fmt.i_cat == SPU_ES ) 
    13721373    { 
    1373         box_gather( stsd, GetTextBox( p_mux, p_stream ) ); 
     1374        box_gather( stsd, GetTextBox() ); 
    13741375    } 
    13751376    box_fix( stsd ); 
  • modules/mux/mpeg/ps.c

    r99fab90 r25ad0cd  
    232232static int Control( sout_mux_t *p_mux, int i_query, va_list args ) 
    233233{ 
     234    VLC_UNUSED(p_mux); 
    234235    vlc_bool_t *pb_bool; 
    235236    char **ppsz; 
    236237 
    237    switch( i_query ) 
    238    
    239        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
    240            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    241            *pb_bool = VLC_TRUE; 
    242            return VLC_SUCCESS; 
    243  
    244        case MUX_GET_ADD_STREAM_WAIT: 
    245            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    246            *pb_bool = VLC_FALSE; 
    247            return VLC_SUCCESS; 
    248  
    249        case MUX_GET_MIME: 
    250            ppsz = (char**)va_arg( args, char ** ); 
    251            *ppsz = strdup( "video/mpeg" ); 
    252            return VLC_SUCCESS; 
     238    switch( i_query ) 
     239   
     240        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
     241            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     242            *pb_bool = VLC_TRUE; 
     243            return VLC_SUCCESS; 
     244 
     245        case MUX_GET_ADD_STREAM_WAIT: 
     246            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     247            *pb_bool = VLC_FALSE; 
     248            return VLC_SUCCESS; 
     249 
     250        case MUX_GET_MIME: 
     251            ppsz = (char**)va_arg( args, char ** ); 
     252            *ppsz = strdup( "video/mpeg" ); 
     253            return VLC_SUCCESS; 
    253254 
    254255        default: 
    255256            return VLC_EGENERIC; 
    256    
     257   
    257258} 
    258259 
     
    795796    { 
    796797        uint32_t i_crc = 0xffffffff; 
    797         for( i = 0; i < p_hdr->i_buffer; i++ ) 
     798        for( i = 0; (size_t)i < p_hdr->i_buffer; i++ ) 
    798799        i_crc = (i_crc << 8) ^ 
    799800            p_sys->crc32_table[((i_crc >> 24) ^ p_hdr->p_buffer[i]) & 0xff]; 
     
    811812{ 
    812813    mtime_t i_dts; 
    813     int     i_stream; 
    814     int     i; 
     814    int     i_stream, i; 
    815815 
    816816    for( i = 0, i_dts = 0, i_stream = -1; i < p_mux->i_nb_inputs; i++ ) 
  • modules/mux/mpeg/ts.c

    r99fab90 r25ad0cd  
    308308} 
    309309 
    310 static inline void BufferChainClean( sout_instance_t *p_sout, 
    311                                      sout_buffer_chain_t *c ) 
     310static inline void BufferChainClean( sout_buffer_chain_t *c ) 
    312311{ 
    313312    block_t *b; 
     
    858857static int Control( sout_mux_t *p_mux, int i_query, va_list args ) 
    859858{ 
     859    VLC_UNUSED(p_mux); 
    860860    vlc_bool_t *pb_bool; 
    861861    char **ppsz; 
    862862 
    863    switch( i_query ) 
    864    
    865        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
    866            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    867            *pb_bool = VLC_TRUE; 
    868            return VLC_SUCCESS; 
    869  
    870        case MUX_GET_ADD_STREAM_WAIT: 
    871            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    872            *pb_bool = VLC_FALSE; 
    873            return VLC_SUCCESS; 
    874  
    875        case MUX_GET_MIME: 
    876            ppsz = (char**)va_arg( args, char ** ); 
    877            *ppsz = strdup( "video/mpeg" );  /* FIXME not sure */ 
    878            return VLC_SUCCESS; 
     863    switch( i_query ) 
     864   
     865        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
     866            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     867            *pb_bool = VLC_TRUE; 
     868            return VLC_SUCCESS; 
     869 
     870        case MUX_GET_ADD_STREAM_WAIT: 
     871            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     872            *pb_bool = VLC_FALSE; 
     873            return VLC_SUCCESS; 
     874 
     875        case MUX_GET_MIME: 
     876            ppsz = (char**)va_arg( args, char ** ); 
     877            *ppsz = strdup( "video/mpeg" );  /* FIXME not sure */ 
     878            return VLC_SUCCESS; 
    879879 
    880880        default: 
    881881            return VLC_EGENERIC; 
    882    
     882   
    883883} 
    884884 
     
    12221222 
    12231223    /* Empty all data in chain_pes */ 
    1224     BufferChainClean( p_mux->p_sout, &p_stream->chain_pes ); 
     1224    BufferChainClean( &p_stream->chain_pes ); 
    12251225 
    12261226    if( p_stream->lang ) 
     
    13751375                                 ( i_spu_delay < I64C(10000) ) ) 
    13761376                            { 
    1377                                 BufferChainClean( p_mux->p_sout, 
    1378                                                   &p_stream->chain_pes ); 
     1377                                BufferChainClean( &p_stream->chain_pes ); 
    13791378                                p_stream->i_pes_dts = 0; 
    13801379                                p_stream->i_pes_used = 0; 
     
    14181417                        block_Release( p_data ); 
    14191418 
    1420                         BufferChainClean( p_mux->p_sout, 
    1421                                           &p_stream->chain_pes ); 
     1419                        BufferChainClean( &p_stream->chain_pes ); 
    14221420                        p_stream->i_pes_dts = 0; 
    14231421                        p_stream->i_pes_used = 0; 
     
    14261424                        if( p_input->p_fmt->i_cat != SPU_ES ) 
    14271425                        { 
    1428                             BufferChainClean( p_mux->p_sout, 
    1429                                               &p_pcr_stream->chain_pes ); 
     1426                            BufferChainClean( &p_pcr_stream->chain_pes ); 
    14301427                            p_pcr_stream->i_pes_dts = 0; 
    14311428                            p_pcr_stream->i_pes_used = 0; 
  • modules/mux/mpjpeg.c

    r99fab90 r25ad0cd  
    9696static int Control( sout_mux_t *p_mux, int i_query, va_list args ) 
    9797{ 
     98    VLC_UNUSED(p_mux); 
    9899    vlc_bool_t *pb_bool; 
    99100    char **ppsz; 
    100101 
    101    switch( i_query ) 
    102    
    103        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
    104            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    105            *pb_bool = VLC_TRUE; 
    106            return VLC_SUCCESS; 
     102    switch( i_query ) 
     103   
     104        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
     105            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     106            *pb_bool = VLC_TRUE; 
     107            return VLC_SUCCESS; 
    107108 
    108        case MUX_GET_ADD_STREAM_WAIT: 
    109            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    110            *pb_bool = VLC_TRUE; 
    111            return VLC_SUCCESS; 
     109        case MUX_GET_ADD_STREAM_WAIT: 
     110            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     111            *pb_bool = VLC_TRUE; 
     112            return VLC_SUCCESS; 
    112113 
    113        case MUX_GET_MIME: 
    114            ppsz = (char**)va_arg( args, char ** ); 
    115            *ppsz = strdup( "multipart/x-mixed-replace; boundary="BOUNDARY ); 
    116            return VLC_SUCCESS; 
     114        case MUX_GET_MIME: 
     115            ppsz = (char**)va_arg( args, char ** ); 
     116            *ppsz = strdup( "multipart/x-mixed-replace; boundary="BOUNDARY ); 
     117            return VLC_SUCCESS; 
    117118 
    118119        default: 
    119120            return VLC_EGENERIC; 
    120    
     121   
    121122} 
    122123 
     
    146147static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) 
    147148{ 
     149    VLC_UNUSED(p_input); 
    148150    msg_Dbg( p_mux, "removing input" ); 
    149151    return VLC_SUCCESS; 
  • modules/mux/ogg.c

    r99fab90 r25ad0cd  
    6868static int MuxBlock ( sout_mux_t *, sout_input_t * ); 
    6969 
    70 static block_t *OggCreateHeader( sout_mux_t *, mtime_t ); 
    71 static block_t *OggCreateFooter( sout_mux_t *, mtime_t ); 
     70static block_t *OggCreateHeader( sout_mux_t * ); 
     71static block_t *OggCreateFooter( sout_mux_t * ); 
    7272 
    7373/***************************************************************************** 
     
    137137{ 
    138138    mtime_t i_dts; 
    139     int     i_stream; 
    140     int     i; 
     139    int     i_stream, i; 
    141140 
    142141    for( i = 0, i_dts = 0, i_stream = -1; i < p_mux->i_nb_inputs; i++ ) 
     
    257256        /* Close the current ogg stream */ 
    258257        msg_Dbg( p_mux, "writing footer" ); 
    259         block_ChainAppend( &p_og, OggCreateFooter( p_mux, 0 ) ); 
     258        block_ChainAppend( &p_og, OggCreateFooter( p_mux ) ); 
    260259 
    261260        /* Remove deleted logical streams */ 
     
    283282static int Control( sout_mux_t *p_mux, int i_query, va_list args ) 
    284283{ 
     284    VLC_UNUSED(p_mux); 
    285285    vlc_bool_t *pb_bool; 
    286286    char **ppsz; 
     
    584584} 
    585585 
    586 static block_t *OggCreateHeader( sout_mux_t *p_mux, mtime_t i_dts
     586static block_t *OggCreateHeader( sout_mux_t *p_mux
    587587{ 
    588588    block_t *p_hdr = NULL; 
     
    779779} 
    780780 
    781 static block_t *OggCreateFooter( sout_mux_t *p_mux, mtime_t i_dts
     781static block_t *OggCreateFooter( sout_mux_t *p_mux
    782782{ 
    783783    sout_mux_sys_t *p_sys = p_mux->p_sys; 
     
    785785    block_t *p_og; 
    786786    ogg_packet    op; 
    787     int i; 
     787    int     i; 
    788788 
    789789    /* flush all remaining data */ 
     
    887887 
    888888            msg_Dbg( p_mux, "writing footer" ); 
    889             block_ChainAppend( &p_og, OggCreateFooter( p_mux, 0 ) ); 
     889            block_ChainAppend( &p_og, OggCreateFooter( p_mux ) ); 
    890890 
    891891            /* Remove deleted logical streams */ 
     
    904904        p_sys->i_del_streams = 0; 
    905905        p_sys->i_add_streams = 0; 
    906         block_ChainAppend( &p_og, OggCreateHeader( p_mux, i_dts ) ); 
     906        block_ChainAppend( &p_og, OggCreateHeader( p_mux ) ); 
    907907 
    908908        /* Write header and/or footer */ 
  • modules/mux/wav.c

    r99fab90 r25ad0cd  
    131131static int Control( sout_mux_t *p_mux, int i_query, va_list args ) 
    132132{ 
     133    VLC_UNUSED(p_mux); 
    133134    vlc_bool_t *pb_bool; 
    134135    char **ppsz; 
    135136 
    136    switch( i_query ) 
    137    
    138        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
    139            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    140            *pb_bool = VLC_FALSE; 
    141            return VLC_SUCCESS; 
    142  
    143        case MUX_GET_ADD_STREAM_WAIT: 
    144            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
    145            *pb_bool = VLC_TRUE; 
    146            return VLC_SUCCESS; 
    147  
    148        case MUX_GET_MIME: 
    149            ppsz = (char**)va_arg( args, char ** ); 
    150            *ppsz = strdup( "audio/wav" ); 
    151            return VLC_SUCCESS; 
     137    switch( i_query ) 
     138   
     139        case MUX_CAN_ADD_STREAM_WHILE_MUXING: 
     140            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     141            *pb_bool = VLC_FALSE; 
     142            return VLC_SUCCESS; 
     143 
     144        case MUX_GET_ADD_STREAM_WAIT: 
     145            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * ); 
     146            *pb_bool = VLC_TRUE; 
     147            return VLC_SUCCESS; 
     148 
     149        case MUX_GET_MIME: 
     150            ppsz = (char**)va_arg( args, char ** ); 
     151            *ppsz = strdup( "audio/wav" ); 
     152            return VLC_SUCCESS; 
    152153 
    153154        default: 
    154155            return VLC_EGENERIC; 
    155    
     156   
    156157} 
    157158static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input ) 
     
    264265static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) 
    265266{ 
     267    VLC_UNUSED(p_input); 
    266268    msg_Dbg( p_mux, "removing input" ); 
    267269 
    268270    msg_Dbg( p_mux, "writing header data" ); 
    269     if( !sout_AccessOutSeek( p_mux->p_access, 0 )
     271    if( sout_AccessOutSeek( p_mux->p_access, 0 ) == VLC_SUCCESS
    270272    { 
    271273        sout_AccessOutWrite( p_mux->p_access, GetHeader( p_mux ) );