sap: remove bogus error return
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 20 Jun 2014 17:00:56 +0000 (20:00 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 20 Jun 2014 17:01:15 +0000 (20:01 +0300)
include/vlc_sout.h
src/missing.c
src/stream_output/sap.c

index b9366f7..cc889eb 100644 (file)
@@ -223,7 +223,7 @@ VLC_API encoder_t * sout_EncoderCreate( vlc_object_t *obj );
  * Announce handler
  ****************************************************************************/
 VLC_API session_descriptor_t* sout_AnnounceRegisterSDP( vlc_object_t *, const char *, const char * ) VLC_USED;
-VLC_API int sout_AnnounceUnRegister(vlc_object_t *,session_descriptor_t* );
+VLC_API void sout_AnnounceUnRegister(vlc_object_t *,session_descriptor_t* );
 #define sout_AnnounceRegisterSDP(o, sdp, addr) \
         sout_AnnounceRegisterSDP(VLC_OBJECT (o), sdp, addr)
 #define sout_AnnounceUnRegister(o, a) \
index d1c7ebd..faed77f 100644 (file)
@@ -264,7 +264,7 @@ session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
 }
 
 #undef sout_AnnounceUnRegister
-int sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
+void sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
 {
     VLC_UNUSED (obj); VLC_UNUSED (d);
     assert (0);
index a190344..0a78748 100644 (file)
@@ -377,9 +377,8 @@ sout_AnnounceRegisterSDP (vlc_object_t *obj, const char *sdp,
  *
  * \param obj a VLC object
  * \param session the session descriptor
- * \return VLC_SUCCESS
  */
-int sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *session)
+void sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *session)
 {
     sap_address_t *addr, **paddr;
     session_descriptor_t **psession;
@@ -426,5 +425,4 @@ found:
     }
 
     free (session);
-    return VLC_SUCCESS;
 }