[vlc-devel] commit: Missing ENABLE_SOUT checks. (Laurent Aimar )
git version control
git at videolan.org
Mon Jan 12 22:26:16 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Jan 12 22:03:24 2009 +0100| [c182c63aefb708cdcd75bfcd13b3655a69bf269d] | committer: Laurent Aimar
Missing ENABLE_SOUT checks.
Pointed out by linkfanel.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c182c63aefb708cdcd75bfcd13b3655a69bf269d
---
src/input/ressource.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/input/ressource.c b/src/input/ressource.c
index d8131a0..852843b 100644
--- a/src/input/ressource.c
+++ b/src/input/ressource.c
@@ -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
}
/* */
More information about the vlc-devel
mailing list