Commit 26db09c0 authored by Gildas Bazin's avatar Gildas Bazin

* include/announce.h, src/stream_output/announce.c, modules/stream_out/standard.c: fixed broken build.
parent 36edc5e9
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* announce.h : Session announcement * announce.h : Session announcement
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: announce.h,v 1.8 2003/08/13 14:17:26 zorglub Exp $ * $Id: announce.h,v 1.9 2003/08/13 19:38:27 gbazin Exp $
* *
* Authors: Clment Stenac <zorglub@via.ecp.fr> * Authors: Clment Stenac <zorglub@via.ecp.fr>
* *
...@@ -71,7 +71,5 @@ VLC_EXPORT( sap_session_t *, sout_SAPNew, ( sout_instance_t * ...@@ -71,7 +71,5 @@ VLC_EXPORT( sap_session_t *, sout_SAPNew, ( sout_instance_t *
VLC_EXPORT( void, sout_SAPSend, ( sout_instance_t *,sap_session_t *) ); VLC_EXPORT( void, sout_SAPSend, ( sout_instance_t *,sap_session_t *) );
VLC_EXPORT( void, sout_SAPDelete, ( sout_instance_t *,sap_session_t * ) ); VLC_EXPORT( void, sout_SAPDelete, ( sout_instance_t *,sap_session_t * ) );
#ifdef HAVE_SLP_H
VLC_EXPORT( int, sout_SLPReg, (sout_instance_t*,char*,char*) ); VLC_EXPORT( int, sout_SLPReg, (sout_instance_t*,char*,char*) );
VLC_EXPORT( int, sout_SLPDereg, (sout_instance_t*,char*,char*) ); VLC_EXPORT( int, sout_SLPDereg, (sout_instance_t*,char*,char*) );
#endif
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* standard.c * standard.c
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: standard.c,v 1.9 2003/08/13 14:17:26 zorglub Exp $ * $Id: standard.c,v 1.10 2003/08/13 19:38:28 gbazin Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -78,7 +78,9 @@ static int Open( vlc_object_t *p_this ) ...@@ -78,7 +78,9 @@ static int Open( vlc_object_t *p_this )
char *psz_v6_scope = sout_cfg_find_value( p_stream->p_cfg, "sap_v6scope" ); char *psz_v6_scope = sout_cfg_find_value( p_stream->p_cfg, "sap_v6scope" );
sout_cfg_t *p_sap_cfg = sout_cfg_find( p_stream->p_cfg, "sap" ); sout_cfg_t *p_sap_cfg = sout_cfg_find( p_stream->p_cfg, "sap" );
#ifdef HAVE_SLP_H
sout_cfg_t *p_slp_cfg = sout_cfg_find( p_stream->p_cfg, "slp" ); sout_cfg_t *p_slp_cfg = sout_cfg_find( p_stream->p_cfg, "slp" );
#endif
sout_access_out_t *p_access; sout_access_out_t *p_access;
sout_mux_t *p_mux; sout_mux_t *p_mux;
...@@ -132,7 +134,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -132,7 +134,7 @@ static int Open( vlc_object_t *p_this )
} }
/* *** Register with slp *** */ /* *** Register with slp *** */
#ifdef HAVE_SLP_H #ifdef HAVE_SLP_H
if( p_slp_cfg && ( strstr( psz_access, "udp" ) || if( p_slp_cfg && ( strstr( psz_access, "udp" ) ||
strstr( psz_access , "rtp" ) ) ) strstr( psz_access , "rtp" ) ) )
{ {
...@@ -156,7 +158,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -156,7 +158,7 @@ static int Open( vlc_object_t *p_this )
p_slp_cfg->psz_value ? p_slp_cfg->psz_value : psz_url); p_slp_cfg->psz_value ? p_slp_cfg->psz_value : psz_url);
} }
} }
#endif #endif
/* XXX beurk */ /* XXX beurk */
p_sout->i_preheader = __MAX( p_sout->i_preheader, p_mux->i_preheader ); p_sout->i_preheader = __MAX( p_sout->i_preheader, p_mux->i_preheader );
...@@ -185,7 +187,7 @@ static void Close( vlc_object_t * p_this ) ...@@ -185,7 +187,7 @@ static void Close( vlc_object_t * p_this )
if( p_sys->p_sap ) if( p_sys->p_sap )
sout_SAPDelete( (sout_instance_t *)p_this , p_sys->p_sap ); sout_SAPDelete( (sout_instance_t *)p_this , p_sys->p_sap );
#ifdef HAVE_SLP_H #ifdef HAVE_SLP_H
if( p_sys->p_slp ) if( p_sys->p_slp )
{ {
sout_SLPDereg( (sout_instance_t *)p_this, sout_SLPDereg( (sout_instance_t *)p_this,
...@@ -193,7 +195,7 @@ static void Close( vlc_object_t * p_this ) ...@@ -193,7 +195,7 @@ static void Close( vlc_object_t * p_this )
p_sys->p_slp->psz_name); p_sys->p_slp->psz_name);
free( p_sys->p_slp); free( p_sys->p_slp);
} }
#endif #endif
sout_MuxDelete( p_sys->p_mux ); sout_MuxDelete( p_sys->p_mux );
......
...@@ -467,7 +467,7 @@ int sout_SLPReg( sout_instance_t *p_sout, char * psz_url, ...@@ -467,7 +467,7 @@ int sout_SLPReg( sout_instance_t *p_sout, char * psz_url,
return 0; return 0;
#else /* This function should never be called if this is false */ #else /* This function should never be called if this is false */
return -1 return -1;
#endif #endif
} }
...@@ -507,6 +507,6 @@ int sout_SLPDereg( sout_instance_t *p_sout, char * psz_url, ...@@ -507,6 +507,6 @@ int sout_SLPDereg( sout_instance_t *p_sout, char * psz_url,
return 0; return 0;
#else /* This function should never be called if this is false */ #else /* This function should never be called if this is false */
return -1 return -1;
#endif #endif
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment