]> git.sesse.net Git - vlc/commitdiff
Missing ENABLE_SOUT checks.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 12 Jan 2009 21:03:24 +0000 (22:03 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 12 Jan 2009 21:17:02 +0000 (22:17 +0100)
Pointed out by linkfanel.

src/input/ressource.c

index d8131a0d8c6e0813ec87a74c39b04d54fc24bcc2..852843b9742afa3e49bc7b2c35c0eb21342316f2 100644 (file)
@@ -63,13 +63,16 @@ struct input_ressource_t
 /* */
 static void DestroySout( input_ressource_t *p_ressource )
 {
+#ifdef ENABLE_SOUT
     if( p_ressource->p_sout )
         sout_DeleteInstance( p_ressource->p_sout );
+#endif
     p_ressource->p_sout = NULL;
 }
 static sout_instance_t *RequestSout( input_ressource_t *p_ressource,
                                      sout_instance_t *p_sout, const char *psz_sout )
 {
+#ifdef ENABLE_SOUT
     if( !p_sout && !psz_sout )
     {
         if( p_ressource->p_sout )
@@ -116,6 +119,9 @@ static sout_instance_t *RequestSout( input_ressource_t *p_ressource,
 
         return NULL;
     }
+#else
+    return NULL;
+#endif
 }
 
 /* */