]> git.sesse.net Git - vlc/commitdiff
Protect a few LPCM functions with ENABLE_SOUT.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Sun, 26 Sep 2010 00:41:33 +0000 (02:41 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Sun, 26 Sep 2010 00:41:33 +0000 (02:41 +0200)
modules/codec/lpcm.c

index 8e0540afe21162a93a763e6b444455ed8ddae146..bed9ddf17b96df604901307a1d40842b21cc91f3 100644 (file)
@@ -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
 
 /*****************************************************************************
  *