[vlc-devel] [PATCH 2/4] lua: fix the pushed release callback prototype
Steve Lhomme
robux4 at ycbcr.xyz
Mon Mar 2 12:10:49 CET 2020
Both callbacks don't return a value so don't force a callback that need one.
---
modules/lua/libs/objects.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/lua/libs/objects.c b/modules/lua/libs/objects.c
index 1e40621e9ec..9db1175ca92 100644
--- a/modules/lua/libs/objects.c
+++ b/modules/lua/libs/objects.c
@@ -46,7 +46,7 @@
typedef struct vlclua_object {
vlc_object_t *object;
- int (*release)(vlc_object_t *);
+ void (*release)(vlc_object_t *);
} vlclua_object_t;
static int vlclua_release_vlc_object(lua_State *L)
@@ -60,7 +60,7 @@ static int vlclua_release_vlc_object(lua_State *L)
}
static int vlclua_push_vlc_object(lua_State *L, vlc_object_t *p_obj,
- int (*release)(vlc_object_t *))
+ void (*release)(vlc_object_t *))
{
vlclua_object_t *udata =
(vlclua_object_t *)lua_newuserdata(L, sizeof (vlclua_object_t));
--
2.17.1
More information about the vlc-devel
mailing list