]> git.sesse.net Git - vlc/blobdiff - src/missing.c
shine: avoid double free
[vlc] / src / missing.c
index faed77fe50e93a45f313aed084e6539cc875f4be..a4897ee387aee9d91aaa1ed63a62a5b6fe8968aa 100644 (file)
 char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip, int *port)
 {
     (void) cl; (void) psz_ip; (void) port;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
 {
     (void) file;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 httpd_file_t *httpd_FileNew (httpd_host_t *host,
@@ -62,13 +62,13 @@ httpd_file_t *httpd_FileNew (httpd_host_t *host,
     (void) url; (void) content_type;
     (void) login; (void) password;
     (void) cb; (void) data;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
 {
     (void) handler;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
@@ -79,13 +79,13 @@ httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
     (void) host; (void) url;
     (void) login; (void) password;
     (void) cb; (void) data;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void httpd_HostDelete (httpd_host_t *h)
 {
     (void) h;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 httpd_host_t *vlc_http_HostNew (vlc_object_t *obj)
@@ -109,44 +109,44 @@ httpd_host_t *vlc_rtsp_HostNew (vlc_object_t *obj)
 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
 {
     (void) m; (void) name; (void) fmt;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
 {
     (void) m; (void) name;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void httpd_RedirectDelete (httpd_redirect_t *r)
 {
     (void) r;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
                                      const char *dst, const char *src)
 {
     (void) host; (void) dst; (void) src;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 char *httpd_ServerIP (const httpd_client_t *client, char *ip, int *port)
 {
     (void) client; (void) ip; (void) port;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void httpd_StreamDelete (httpd_stream_t *stream)
 {
     (void) stream;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
 {
     (void) stream; (void) data; (void) count;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
@@ -155,13 +155,13 @@ httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
 {
     (void) host; (void) url; (void) content_type;
     (void) login; (void) password;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 int httpd_StreamSend (httpd_stream_t *stream, const block_t *p_block)
 {
     (void) stream; (void) p_block;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 int httpd_StreamSetHTTPHeaders (httpd_stream_t * stream,
@@ -169,27 +169,27 @@ int httpd_StreamSetHTTPHeaders (httpd_stream_t * stream,
                                 size_t i_headers)
 {
     (void) stream; (void) headers; (void) i_headers;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
                     httpd_callback_sys_t *data)
 {
     (void) url; (void) request; (void) cb; (void) data;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void httpd_UrlDelete (httpd_url_t *url)
 {
     (void) url;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
                            const char *login, const char *password)
 {
     (void) host; (void) url; (void) login; (void) password;
-    assert (0);
+    vlc_assert_unreachable ();
 }
 #endif /* !ENABLE_HTTPD */
 
@@ -217,13 +217,13 @@ char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
 {
     VLC_UNUSED (out); VLC_UNUSED (query);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void sout_AccessOutDelete (sout_access_out_t *out)
 {
     VLC_UNUSED (out);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 #undef sout_AccessOutNew
@@ -238,19 +238,19 @@ sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
 {
     VLC_UNUSED (out); VLC_UNUSED (block);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
 {
     VLC_UNUSED (out); VLC_UNUSED (offset);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
 {
     VLC_UNUSED (out); VLC_UNUSED (block);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 #undef sout_AnnounceRegisterSDP
@@ -267,7 +267,7 @@ session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
 void sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
 {
     VLC_UNUSED (obj); VLC_UNUSED (d);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 #undef sout_EncoderCreate
@@ -277,47 +277,47 @@ encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
     return NULL;
 }
 
-sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
+sout_input_t *sout_MuxAddStream( sout_mux_t *mux, const es_format_t *fmt )
 {
     VLC_UNUSED (mux); VLC_UNUSED (fmt);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void sout_MuxDelete (sout_mux_t *mux)
 {
     VLC_UNUSED (mux);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
 {
     VLC_UNUSED (mux); VLC_UNUSED (input);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
-int sout_MuxGetStream (sout_mux_t *p_mux, int i_blocks, mtime_t *pi_dts)
+int sout_MuxGetStream (sout_mux_t *p_mux, unsigned int i_blocks, mtime_t *pi_dts)
 {
     VLC_UNUSED (p_mux); VLC_UNUSED (i_blocks); VLC_UNUSED (pi_dts);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
                          sout_access_out_t *out)
 {
     VLC_UNUSED (instance); VLC_UNUSED (mux); VLC_UNUSED (out);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 int sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
 {
     VLC_UNUSED (mux); VLC_UNUSED (input); VLC_UNUSED (block);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
 {
     VLC_UNUSED (p_first); VLC_UNUSED (p_last);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
@@ -326,7 +326,7 @@ sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
 {
     VLC_UNUSED (p_sout); VLC_UNUSED (psz_chain); VLC_UNUSED (p_next);
     VLC_UNUSED (pp_last);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
@@ -346,13 +346,13 @@ int vlm_Control (vlm_t *vlm, int query, ...)
 {
     VLC_UNUSED (query);
     VLC_UNUSED (vlm);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void vlm_Delete (vlm_t *vlm)
 {
     VLC_UNUSED (vlm);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
@@ -360,20 +360,20 @@ int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
     VLC_UNUSED (vlm);
     VLC_UNUSED (cmd);
     VLC_UNUSED (pm);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
 {
     VLC_UNUSED (a);
     VLC_UNUSED (b);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 void vlm_MessageDelete (vlm_message_t *m)
 {
     VLC_UNUSED (m);
-    assert (0);
+    vlc_assert_unreachable ();
 }
 
 vlm_message_t *vlm_MessageSimpleNew (const char *a)