From 92efe73791d0998536042bfab5a1babc67d168c7 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 01:06:43 +0200 Subject: Upgrading to IM 3.6.2, and doing some cleanup at the same time. --- im/src/lua5/imlua_capture.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'im/src/lua5/imlua_capture.c') diff --git a/im/src/lua5/imlua_capture.c b/im/src/lua5/imlua_capture.c index 59ec0fb..181cbd0 100755 --- a/im/src/lua5/imlua_capture.c +++ b/im/src/lua5/imlua_capture.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_capture.c,v 1.2 2009/08/12 04:09:17 scuri Exp $ + * $Id: imlua_capture.c,v 1.4 2010/06/07 20:59:32 scuri Exp $ */ #include @@ -68,7 +68,7 @@ static int imluaVideoCaptureDeviceDesc (lua_State *L) } /*****************************************************************************\ - im.VideoCaptureDeviceDesc(device) + im.VideoCaptureReloadDevices() \*****************************************************************************/ static int imluaVideoCaptureReloadDevices (lua_State *L) { @@ -76,6 +76,16 @@ static int imluaVideoCaptureReloadDevices (lua_State *L) return 1; } +/*****************************************************************************\ + im.VideoCaptureReleaseDevices() +\*****************************************************************************/ +static int imluaVideoCaptureReleaseDevices (lua_State *L) +{ + (void)L; + imVideoCaptureReleaseDevices(); + return 0; +} + /*****************************************************************************\ im.VideoCaptureCreate() \*****************************************************************************/ @@ -381,6 +391,7 @@ static const luaL_reg imcapture_lib[] = { {"VideoCaptureDeviceCount", imluaVideoCaptureDeviceCount}, {"VideoCaptureDeviceDesc", imluaVideoCaptureDeviceDesc}, {"VideoCaptureReloadDevices", imluaVideoCaptureReloadDevices}, + {"VideoCaptureReleaseDevices", imluaVideoCaptureReleaseDevices}, {"VideoCaptureCreate", imluaVideoCaptureCreate}, {"VideoCaptureDestroy", imluaVideoCaptureDestroy}, {NULL, NULL} @@ -435,9 +446,3 @@ int luaopen_imlua_capture(lua_State *L) { return imlua_open_capture(L); } - -int luaopen_imlua_capture51(lua_State *L) -{ - return imlua_open_capture(L); -} - -- cgit v1.2.3