From: Steinar Gunderson Date: Sun, 26 Sep 2010 00:41:33 +0000 (+0200) Subject: Protect a few LPCM functions with ENABLE_SOUT. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=ba1a1d0cbda7a9a0479d0253a52a985841e63a61;p=vlc Protect a few LPCM functions with ENABLE_SOUT. --- diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c index 8e0540afe2..bed9ddf17b 100644 --- a/modules/codec/lpcm.c +++ b/modules/codec/lpcm.c @@ -64,11 +64,13 @@ vlc_module_begin () set_capability( "packetizer", 100 ) set_callbacks( OpenPacketizer, CloseCommon ) +#ifdef ENABLE_SOUT add_submodule () set_description( N_("Linear PCM audio encoder") ) set_capability( "encoder", 100 ) set_callbacks( OpenEncoder, CloseEncoder ) add_shortcut( "lpcm" ) +#endif vlc_module_end () @@ -422,6 +424,7 @@ static void CloseCommon( vlc_object_t *p_this ) free( p_dec->p_sys ); } +#ifdef ENABLE_SOUT /***************************************************************************** * OpenEncoder: lpcm encoder construction *****************************************************************************/ @@ -556,6 +559,7 @@ static block_t *EncodeFrames( encoder_t *p_enc, aout_buffer_t *p_aout_buf ) return p_first_block; } +#endif /***************************************************************************** *