diff --git a/src/input/decoder.c b/src/input/decoder.c
index 892f00ef23edc66ad33755ccf95599cd69b924b0..e03643b3129087965632344cec2c26a2d3f289c1 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -220,9 +220,7 @@ decoder_t *input_DecoderNew( input_thread_t *p_input,
     decoder_t *p_dec = NULL;
     int i_priority;
 
-#ifndef ENABLE_SOUT
-    (void)b_force_decoder;
-#else
+#ifdef ENABLE_SOUT
     /* If we are in sout mode, search for packetizer module */
     if( p_sout )
     {