]> git.sesse.net Git - vlc/commitdiff
Kill warning.
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 27 Feb 2010 21:07:07 +0000 (22:07 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 27 Feb 2010 21:07:07 +0000 (22:07 +0100)
modules/misc/lua/libs/stream.c

index 7af8444604fc2035ef515e21f4e7765c1edb22c3..4a940586e33da814b56887652099b59282a3de8a 100644 (file)
@@ -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 );
 }