[vlc-commits] lua: fix the pushed release callback prototype
Steve Lhomme
git at videolan.org
Mon Mar 2 14:19:21 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Mar 2 12:02:53 2020 +0100| [ad7df5781055a060b57d4c029d9834a98248eeaa] | committer: Steve Lhomme
lua: fix the pushed release callback prototype
Both callbacks don't return a value so don't force a callback that need one.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad7df5781055a060b57d4c029d9834a98248eeaa
---
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 1e40621e9e..9db1175ca9 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));
More information about the vlc-commits
mailing list