[vlc-devel] commit: Fix es_format_Copy prototype ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Mar 29 09:39:13 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Fri Mar 28 19:06:15 2008 +0200| [aa4867fe618b00ce03307e930a95154228f7de59]

Fix es_format_Copy prototype

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa4867fe618b00ce03307e930a95154228f7de59
---

 include/vlc_es.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/vlc_es.h b/include/vlc_es.h
index 0d8d568..2ed79c6 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -239,7 +239,7 @@ static inline void es_format_Init( es_format_t *fmt,
     fmt->p_extra                = NULL;
 }
 
-static inline void es_format_Copy( es_format_t *dst, es_format_t *src )
+static inline int es_format_Copy( es_format_t *dst, const es_format_t *src )
 {
     int i;
     memcpy( dst, src, sizeof( es_format_t ) );
@@ -284,6 +284,7 @@ static inline void es_format_Copy( es_format_t *dst, es_format_t *src )
         else
             dst->p_extra_languages[i].psz_description = NULL;
     }
+    return VLC_SUCCESS;
 }
 
 static inline void es_format_Clean( es_format_t *fmt )




More information about the vlc-devel mailing list