[grilo-plugins] lua-factory: Add cast conversion



commit c7deda338509d7f51df5fba299009df6268a5419
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Sun Mar 2 00:13:10 2014 +0000

    lua-factory: Add cast conversion

 src/lua-factory/grl-lua-library.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index e7479b6..7ba9d13 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -275,7 +275,7 @@ grl_util_build_media (lua_State *L,
           g_date_time_unref (date);
         } else if (type == G_TYPE_BYTE_ARRAY) {
            gsize size = luaL_len (L, -1);
-           const guint8 *binary = lua_tostring (L, -1);
+           const guint8 *binary = (const guint8 *) lua_tostring (L, -1);
            grl_data_set_binary (GRL_DATA (media), key_id, binary, size);
         } else if (!lua_isnil (L, -1)) {
           GRL_WARNING ("'%s' is being ignored as G_TYPE is not being handled.",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]