Commit 97a9763b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sap: remove bogus error return

parent 4e75bc06
...@@ -223,7 +223,7 @@ VLC_API encoder_t * sout_EncoderCreate( vlc_object_t *obj ); ...@@ -223,7 +223,7 @@ VLC_API encoder_t * sout_EncoderCreate( vlc_object_t *obj );
* Announce handler * Announce handler
****************************************************************************/ ****************************************************************************/
VLC_API session_descriptor_t* sout_AnnounceRegisterSDP( vlc_object_t *, const char *, const char * ) VLC_USED; 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) \ #define sout_AnnounceRegisterSDP(o, sdp, addr) \
sout_AnnounceRegisterSDP(VLC_OBJECT (o), sdp, addr) sout_AnnounceRegisterSDP(VLC_OBJECT (o), sdp, addr)
#define sout_AnnounceUnRegister(o, a) \ #define sout_AnnounceUnRegister(o, a) \
......
...@@ -264,7 +264,7 @@ session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj, ...@@ -264,7 +264,7 @@ session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
} }
#undef sout_AnnounceUnRegister #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); VLC_UNUSED (obj); VLC_UNUSED (d);
assert (0); assert (0);
......
...@@ -377,9 +377,8 @@ sout_AnnounceRegisterSDP (vlc_object_t *obj, const char *sdp, ...@@ -377,9 +377,8 @@ sout_AnnounceRegisterSDP (vlc_object_t *obj, const char *sdp,
* *
* \param obj a VLC object * \param obj a VLC object
* \param session the session descriptor * \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; sap_address_t *addr, **paddr;
session_descriptor_t **psession; session_descriptor_t **psession;
...@@ -426,5 +425,4 @@ found: ...@@ -426,5 +425,4 @@ found:
} }
free (session); free (session);
return VLC_SUCCESS;
} }
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