sout_AnnounceRegisterSDP(): removes unused SOUT_CFG_PREFIX argument
authorRafaël Carré <funman@videolan.org>
Mon, 28 Jan 2008 16:57:42 +0000 (16:57 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 28 Jan 2008 16:57:42 +0000 (16:57 +0000)
include/vlc_sout.h
modules/stream_out/rtp.c
modules/stream_out/standard.c
src/stream_output/announce.c

index 2f55b6a..7befad4 100644 (file)
@@ -225,7 +225,7 @@ static inline int sout_StreamIdSend( sout_stream_t *s, sout_stream_id_t *id, blo
 /****************************************************************************
  * Announce handler
  ****************************************************************************/
-VLC_EXPORT(session_descriptor_t*,sout_AnnounceRegisterSDP, (sout_instance_t *, const char *, const char *, const char *, announce_method_t* ) );
+VLC_EXPORT(session_descriptor_t*,sout_AnnounceRegisterSDP, ( sout_instance_t *, const char *, const char *, announce_method_t* ) );
 VLC_EXPORT( int,                sout_AnnounceUnRegister, (sout_instance_t *,session_descriptor_t* ) );
 
 VLC_EXPORT(announce_method_t*,   sout_SAPMethod, (void) );
index 28439ee..7851498 100644 (file)
@@ -1251,7 +1251,7 @@ static int SapSetup( sout_stream_t *p_stream )
     if( ( p_sys->i_es > 0 || p_sys->p_mux ) && p_sys->psz_sdp && *p_sys->psz_sdp )
     {
         announce_method_t *p_method = sout_SAPMethod();
-        p_sys->p_session = sout_AnnounceRegisterSDP( p_sout, SOUT_CFG_PREFIX,
+        p_sys->p_session = sout_AnnounceRegisterSDP( p_sout,
                                                      p_sys->psz_sdp,
                                                      p_sys->psz_destination,
                                                      p_method );
@@ -1314,6 +1314,7 @@ static int  HttpCallback( httpd_file_sys_t *p_args,
                           httpd_file_t *f, uint8_t *p_request,
                           uint8_t **pp_data, int *pi_data )
 {
+    VLC_UNUSED(f); VLC_UNUSED(p_request);
     sout_stream_sys_t *p_sys = (sout_stream_sys_t*)p_args;
 
     vlc_mutex_lock( &p_sys->lock_sdp );
index d7288e7..edc04f5 100644 (file)
@@ -384,8 +384,7 @@ static int Open( vlc_object_t *p_this )
             msg_Dbg (p_stream, "Generated SDP:\n%s", psz_sdp);
 
             p_sys->p_session =
-                sout_AnnounceRegisterSDP (p_sout, SOUT_CFG_PREFIX, psz_sdp,
-                                          dhost, p_method);
+                sout_AnnounceRegisterSDP (p_sout, psz_sdp, dhost, p_method);
             sout_MethodRelease (p_method);
         }
         free (dhost);
index 0215eec..4c183cc 100644 (file)
@@ -60,9 +60,8 @@ struct announce_method_t
  * \return the new session descriptor structure
  */
 session_descriptor_t *
-sout_AnnounceRegisterSDP( sout_instance_t *p_sout, const char *cfgpref,
-                          const char *psz_sdp, const char *psz_dst,
-                          announce_method_t *p_method )
+sout_AnnounceRegisterSDP( sout_instance_t *p_sout, const char *psz_sdp,
+                            const char *psz_dst, announce_method_t *p_method )
 {
     session_descriptor_t *p_session;
     announce_handler_t *p_announce = (announce_handler_t*)