[vlc-devel] commit: Kill warning. (Antoine Cellerier )

git version control git at videolan.org
Sat Feb 27 22:05:40 CET 2010


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sat Feb 27 22:07:07 2010 +0100| [af632723ca953443629bd88aabd2ddb3dfda34da] | committer: Antoine Cellerier 

Kill warning.

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

 modules/misc/lua/libs/stream.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/misc/lua/libs/stream.c b/modules/misc/lua/libs/stream.c
index 7af8444..4a94058 100644
--- a/modules/misc/lua/libs/stream.c
+++ b/modules/misc/lua/libs/stream.c
@@ -92,8 +92,8 @@ static int vlclua_memory_stream_new( lua_State *L )
 {
     vlc_object_t * p_this = vlclua_get_this( L );
     /* FIXME: duplicating the whole buffer is suboptimal. Keeping a reference to the string so that it doesn't get garbage collected would be better */
-    const char * psz_content = strdup( luaL_checkstring( L, 1 ) );
-    stream_t *p_stream = stream_MemoryNew( p_this, psz_content, strlen( psz_content ), false );
+    char * psz_content = strdup( luaL_checkstring( L, 1 ) );
+    stream_t *p_stream = stream_MemoryNew( p_this, (uint8_t *)psz_content, strlen( psz_content ), false );
     return vlclua_stream_new_inner( L, p_stream );
 }
 




More information about the vlc-devel mailing list