]> git.sesse.net Git - vlc/blobdiff - src/missing.c
vout: fix memory leak in ThreadReinit() in case of similar video format
[vlc] / src / missing.c
index de6a7717ebe51298f429ede58426f254a150b2fb..1041ac00d5c554a86b133ae4a3446af778957ad0 100644 (file)
@@ -1,7 +1,16 @@
 /*****************************************************************************
  * missing.c: missing libvlccore symbols
  *****************************************************************************
- * Copyright (C) 2008 Rémi Denis-Courmont
+ * Copyright (C) 2008-2011 Rémi Denis-Courmont
+ * Copyright (C) 2009-2014 VLC authors and VideoLAN
+ * $Id$
+ *
+ * Authors: Rémi Denis-Courmont <rem # videolan : org>
+ *          Pierre Ynard <linkfanel # yahoo fr>
+ *          Toralf Niebuhr <gmthor85 # aim com>
+ *          Felix Paul Kühne <fkuehne # videolan org>
+ *          Jean-Paul Saman <jpsaman # videolan org>
+ *          Antoine Cellerier <dionoea # videolan org>
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published by
@@ -38,18 +47,6 @@ char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip, int *port)
     assert (0);
 }
 
-void httpd_ClientModeBidir (httpd_client_t *cl)
-{
-    (void) cl;
-    assert (0);
-}
-
-void httpd_ClientModeStream (httpd_client_t *cl)
-{
-    (void) cl;
-    assert (0);
-}
-
 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
 {
     (void) file;
@@ -59,12 +56,11 @@ httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
 httpd_file_t *httpd_FileNew (httpd_host_t *host,
                              const char *url, const char *content_type,
                              const char *login, const char *password,
-                             const vlc_acl_t *acl,
                              httpd_file_callback_t cb, httpd_file_sys_t *data)
 {
     (void) host;
     (void) url; (void) content_type;
-    (void) login; (void) password; (void) acl;
+    (void) login; (void) password;
     (void) cb; (void) data;
     assert (0);
 }
@@ -77,12 +73,11 @@ httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
 
 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
                                    const char *login, const char *password,
-                                   const vlc_acl_t *acl,
                                    httpd_handler_callback_t cb,
                                    httpd_handler_sys_t *data)
 {
     (void) host; (void) url;
-    (void) login; (void) password; (void) acl;
+    (void) login; (void) password;
     (void) cb; (void) data;
     assert (0);
 }
@@ -163,9 +158,17 @@ httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
     assert (0);
 }
 
-int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
+int httpd_StreamSend (httpd_stream_t *stream, const block_t *p_block)
 {
-    (void) stream; (void) data; (void) count;
+    (void) stream; (void) p_block;
+    assert (0);
+}
+
+int httpd_StreamSetHTTPHeaders (httpd_stream_t * stream,
+                                httpd_header * headers,
+                                size_t i_headers)
+{
+    (void) stream; (void) headers; (void) i_headers;
     assert (0);
 }
 
@@ -198,23 +201,28 @@ char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
                     const char *ptname, unsigned clockrate, unsigned channels,
                     const char *fmtp)
 {
+    VLC_UNUSED (sdp); VLC_UNUSED (type); VLC_UNUSED (protocol);
+    VLC_UNUSED (dport); VLC_UNUSED (pt); VLC_UNUSED (bw_indep);
+    VLC_UNUSED (bw); VLC_UNUSED (ptname); VLC_UNUSED (clockrate);
+    VLC_UNUSED (channels); VLC_UNUSED (fmtp);
     assert (*sdp == NULL);
-    return NULL;
 }
 
 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
 {
+    VLC_UNUSED (sdp); VLC_UNUSED (name); VLC_UNUSED (fmt);
     assert (*sdp == NULL);
-    return NULL;
 }
 
 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
 {
+    VLC_UNUSED (out); VLC_UNUSED (query);
     assert (0);
 }
 
 void sout_AccessOutDelete (sout_access_out_t *out)
 {
+    VLC_UNUSED (out);
     assert (0);
 }
 
@@ -222,22 +230,26 @@ void sout_AccessOutDelete (sout_access_out_t *out)
 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
                                       const char *access, const char *name)
 {
+    VLC_UNUSED (access); VLC_UNUSED (name);
     msg_Err (obj, "Output support not compiled-in!");
     return NULL;
 }
 
 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
 {
+    VLC_UNUSED (out); VLC_UNUSED (block);
     assert (0);
 }
 
 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
 {
+    VLC_UNUSED (out); VLC_UNUSED (offset);
     assert (0);
 }
 
 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
 {
+    VLC_UNUSED (out); VLC_UNUSED (block);
     assert (0);
 }
 
@@ -246,13 +258,15 @@ session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
                                                 const char *sdp,
                                                 const char *dst)
 {
+    VLC_UNUSED (sdp); VLC_UNUSED (dst);
     msg_Err (obj, "SDP export not compiled-in!");
     return NULL;
 }
 
 #undef sout_AnnounceUnRegister
-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);
 }
 
@@ -265,37 +279,44 @@ encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
 
 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
 {
+    VLC_UNUSED (mux); VLC_UNUSED (fmt);
     assert (0);
 }
 
 void sout_MuxDelete (sout_mux_t *mux)
 {
+    VLC_UNUSED (mux);
     assert (0);
 }
 
 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
 {
+    VLC_UNUSED (mux); VLC_UNUSED (input);
     assert (0);
 }
 
-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);
 }
 
 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);
 }
 
-void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
+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);
 }
 
 void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
 {
+    VLC_UNUSED (p_first); VLC_UNUSED (p_last);
     assert (0);
 }
 
@@ -303,6 +324,8 @@ sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
                                     sout_stream_t *p_next,
                                     sout_stream_t **pp_last)
 {
+    VLC_UNUSED (p_sout); VLC_UNUSED (psz_chain); VLC_UNUSED (p_next);
+    VLC_UNUSED (pp_last);
     assert (0);
 }
 
@@ -310,6 +333,8 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
                      const struct sockaddr *src, size_t srclen,
                      const struct sockaddr *addr, size_t addrlen)
 {
+    VLC_UNUSED (obj); VLC_UNUSED (cfg); VLC_UNUSED (src); VLC_UNUSED (srclen);
+    VLC_UNUSED (addr); VLC_UNUSED (addrlen);
     return NULL;
 }
 #endif /* !ENABLE_SOUT */
@@ -319,6 +344,7 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
 
 int vlm_Control (vlm_t *vlm, int query, ...)
 {
+    VLC_UNUSED (query);
     VLC_UNUSED (vlm);
     assert (0);
 }
@@ -370,95 +396,3 @@ vlm_t *vlm_New (vlc_object_t *obj)
      return NULL;
 }
 #endif /* !ENABLE_VLM */
-
-#ifndef MEDIA_LIBRARY
-#include<vlc_media_library.h>
-
-#undef ml_Get
-media_library_t* ml_Get ( vlc_object_t* p_this )
-{
-    VLC_UNUSED( p_this );
-    return NULL;
-}
-
-media_library_t* ml_Create ( vlc_object_t *p_this, char* psz_name )
-{
-    VLC_UNUSED( p_this );
-    VLC_UNUSED( psz_name );
-    return NULL;
-}
-
-void ml_Destroy( vlc_object_t * p_this )
-{
-    VLC_UNUSED( p_this );
-    assert( 0 );
-}
-
-ml_media_t* media_New( media_library_t* p_ml, int id, ml_select_e select, bool reload )
-{
-    VLC_UNUSED( p_ml );
-    VLC_UNUSED( id );
-    VLC_UNUSED( select );
-    VLC_UNUSED( reload );
-    assert( 0 );
-    return NULL;
-}
-
-#undef ml_UpdateSimple
-int ml_UpdateSimple( media_library_t *p_media_library, ml_select_e selected_type,
-                                     const char* psz_lvalue, int id, ... )
-{
-    VLC_UNUSED( p_media_library );
-    VLC_UNUSED( selected_type );
-    VLC_UNUSED( psz_lvalue );
-    VLC_UNUSED( id );
-    assert( 0 );
-    return 0;
-}
-
-ml_ftree_t* ml_OpConnectChilds( ml_op_e op, ml_ftree_t* left, ml_ftree_t* right )
-{
-    VLC_UNUSED( op );
-    VLC_UNUSED( left );
-    VLC_UNUSED( right );
-    assert( 0 );
-    return NULL;
-}
-
-ml_ftree_t* ml_FtreeSpec( ml_ftree_t* tree, ml_select_e crit, int limit,
-                                          char* sort )
-{
-    VLC_UNUSED( tree );
-    VLC_UNUSED( crit );
-    VLC_UNUSED( limit );
-    VLC_UNUSED( sort );
-    assert( 0 );
-    return NULL;
-}
-
-void ml_PlaySmartPlaylistBasedOn( media_library_t* p_ml,
-                                                ml_ftree_t* p_tree )
-{
-    VLC_UNUSED( p_ml );
-    VLC_UNUSED( p_tree );
-    assert( 0 );
-}
-
-void ml_DeletePersonTypeFromMedia( ml_media_t* p_media, const char *psz_role )
-{
-    VLC_UNUSED( p_media );
-    VLC_UNUSED( psz_role );
-    assert( 0 );
-}
-
-ml_person_t*  ml_GetPersonsFromMedia( media_library_t* p_ml,
-                                                    ml_media_t* p_media,
-                                                    const char *psz_role )
-{
-    VLC_UNUSED( p_ml );
-    VLC_UNUSED( p_media );
-    VLC_UNUSED( psz_role );
-    assert( 0 );
-    return NULL;
-}
-#endif /* !MEDIA_LIBRARY */