Changeset 77d07c4028f5760684f3f41b6e0c382731d2de11

Show
Ignore:
Timestamp:
05/01/08 19:04:27 (4 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1209661467 +0300
git-parent:

[ea0c5c53fd2910a995b935b5ec3417bf85ec8ae6]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1209661467 +0300
Message:

Don't compile sout code if sout is disabled

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/Makefile.am

    rea0c5c5 r77d07c4  
    201201    $(SOURCES_libvlc_dirent) \ 
    202202    $(SOURCES_libvlc_getopt) \ 
     203    $(SOURCES_libvlc_sout) \ 
    203204    $(NULL) 
    204205if HAVE_BEOS 
     
    219220if BUILD_GETOPT 
    220221libvlc_la_SOURCES += $(SOURCES_libvlc_getopt) 
     222endif 
     223if ENABLE_SOUT 
     224libvlc_la_SOURCES += $(SOURCES_libvlc_sout) 
    221225endif 
    222226 
     
    293297    audio_output/output.c \ 
    294298    audio_output/intf.c \ 
    295     stream_output/stream_output.c \ 
    296     stream_output/stream_output.h \ 
    297     stream_output/announce.c \ 
    298     stream_output/profiles.c \ 
    299     stream_output/sap.c \ 
    300     stream_output/sdp.c \ 
    301299    osd/osd.c \ 
    302300    osd/osd_text.c \ 
     
    345343    misc/error.c \ 
    346344    misc/update.c \ 
    347     input/vlm.c \ 
    348345    misc/xml.c \ 
    349346    misc/devices.c \ 
    350347    extras/libc.c \ 
     348    $(NULL) 
     349 
     350SOURCES_libvlc_sout = \ 
     351    input/vlm.c \ 
     352    stream_output/stream_output.c \ 
     353    stream_output/stream_output.h \ 
     354    stream_output/announce.c \ 
     355    stream_output/profiles.c \ 
     356    stream_output/sap.c \ 
     357    stream_output/sdp.c \ 
    351358    $(NULL) 
    352359 
  • src/input/decoder.c

    r449fd28 r77d07c4  
    154154    vlc_value_t val; 
    155155 
     156#ifndef ENABLE_SOUT 
     157    (void)b_force_decoder; 
     158#else 
    156159    /* If we are in sout mode, search for packetizer module */ 
    157160    if( p_input->p->p_sout && !b_force_decoder ) 
     
    168171    } 
    169172    else 
     173#endif 
    170174    { 
    171175        /* Create the decoder configuration structure */ 
     
    776780    } 
    777781 
     782#ifdef ENABLE_SOUT 
    778783    if( p_dec->i_object_type == VLC_OBJECT_PACKETIZER ) 
    779784    { 
     
    830835            } 
    831836 
    832             /* For now it's enough, as only sout inpact on this flag */ 
     837            /* For now it's enough, as only sout impact on this flag */ 
    833838            if( p_dec->p_owner->p_sout->i_out_pace_nocontrol > 0 && 
    834839                p_dec->p_owner->p_input->p->b_out_pace_control ) 
     
    845850        } 
    846851    } 
    847     else if( p_dec->fmt_in.i_cat == AUDIO_ES ) 
     852    else 
     853#endif 
     854    if( p_dec->fmt_in.i_cat == AUDIO_ES ) 
    848855    { 
    849856        if( p_block ) 
     
    10011008    } 
    10021009 
     1010#ifdef ENABLE_SOUT 
    10031011    if( p_dec->p_owner->p_sout_input ) 
    10041012    { 
     
    10061014        es_format_Clean( &p_dec->p_owner->sout ); 
    10071015    } 
     1016#endif 
    10081017 
    10091018    if( p_dec->fmt_in.i_cat == SPU_ES ) 
  • src/input/input.c

    rd8ad123 r77d07c4  
    320320    stats_TimerDump( p_input, STATS_TIMER_INPUT_LAUNCHING ); 
    321321    stats_TimerClean( p_input, STATS_TIMER_INPUT_LAUNCHING ); 
    322  
     322#ifdef ENABLE_SOUT 
    323323    if( priv->b_owns_its_sout && priv->p_sout ) 
    324324    { 
     
    331331        } 
    332332    } 
    333  
     333#endif 
    334334    vlc_gc_decref( p_input->p->input.p_item ); 
    335335 
     
    820820} 
    821821 
     822#ifdef ENABLE_SOUT 
    822823static int InitSout( input_thread_t * p_input ) 
    823824{ 
     
    884885    return VLC_SUCCESS; 
    885886} 
     887#endif 
    886888 
    887889static void InitTitle( input_thread_t * p_input ) 
     
    11621164 
    11631165    InitStatistics( p_input ); 
     1166#ifdef ENABLE_SOUT 
    11641167    ret = InitSout( p_input ); 
    1165  
    11661168    if( ret != VLC_SUCCESS ) 
    11671169        return ret; /* FIXME: goto error; should be better here */ 
     1170#endif 
    11681171 
    11691172    /* Create es out */ 
     
    12501253    if( p_input->p->p_es_out ) 
    12511254        input_EsOutDelete( p_input->p->p_es_out ); 
    1252  
     1255#ifdef ENABLE_SOUT 
    12531256    if( p_input->p->p_sout ) 
    12541257    { 
     
    12561259        sout_DeleteInstance( p_input->p->p_sout ); 
    12571260    } 
    1258  
     1261#endif 
    12591262 
    12601263    if( !p_input->b_preparsing && p_input->p_libvlc->b_stats ) 
  • src/libvlc-common.c

    rf864df7 r77d07c4  
    779779    free( psz_modules ); 
    780780 
     781#ifdef ENABLE_SOUT 
    781782    /* Initialize VLM if vlm-conf is specified */ 
    782783    psz_parser = config_GetPsz( p_libvlc, "vlm-conf" ); 
     
    788789    } 
    789790    free( psz_parser ); 
     791#endif 
    790792 
    791793    /* 
     
    945947    vout_thread_t      * p_vout = NULL; 
    946948    aout_instance_t    * p_aout = NULL; 
    947     announce_handler_t * p_announce = NULL; 
    948     sout_instance_t    * p_sout = NULL; 
    949949 
    950950    /* Ask the interfaces to stop and destroy them */ 
     
    981981    } 
    982982 
     983#ifdef ENABLE_SOUT 
     984    sout_instance_t    * p_sout; 
     985 
    983986    p_sout = vlc_object_find( p_libvlc, VLC_OBJECT_SOUT, FIND_CHILD ); 
    984987    if( p_sout ) 
     
    995998        vlm_Delete( p_libvlc->p_vlm ); 
    996999    } 
     1000#endif 
    9971001 
    9981002    /* Free interaction */ 
     
    10021006    stats_TimersDumpAll( p_libvlc ); 
    10031007    stats_TimersCleanAll( p_libvlc ); 
     1008 
     1009#ifdef ENABLE_SOUT 
     1010    announce_handler_t * p_announce; 
    10041011 
    10051012    /* Free announce handler(s?) */ 
     
    10121019        announce_HandlerDestroy( p_announce ); 
    10131020    } 
     1021#endif 
    10141022 
    10151023    bool b_clean = true; 
  • src/playlist/engine.c

    r7bc28ee r77d07c4  
    232232        vout_Destroy( (vout_thread_t *)p_obj ); 
    233233    } 
     234#ifdef ENABLE_SOUT 
    234235    while( ( p_obj = vlc_object_find( p_playlist, VLC_OBJECT_SOUT, 
    235236                                                  FIND_CHILD ) ) ) 
     
    245246        sout_DeleteInstance( (sout_instance_t*)p_obj ); 
    246247    } 
     248#endif 
    247249    p_playlist->b_cant_sleep = false; 
    248250    vlc_mutex_unlock( &p_playlist->gc_lock ); 
     
    448450    } 
    449451 
     452#ifdef ENABLE_SOUT 
    450453    /* close all remaining sout */ 
    451454    while( ( p_obj = vlc_object_find( p_playlist, 
     
    456459        sout_DeleteInstance( (sout_instance_t*)p_obj ); 
    457460    } 
     461#endif 
    458462 
    459463    /* close all remaining vout */