shithub: sox

Download patch

ref: 0c34af4bf09f89a513738283bd9aa52a2bfc201a
parent: 7060937f97b2c6a7c41b90a2f34a3dd3a14dae0d
author: rrt <rrt>
date: Wed Jan 17 10:16:20 EST 2007

Fix method names which were tweaked for debugging, and remove some
temporary debugging code.

--- a/src/luaform.c
+++ b/src/luaform.c
@@ -81,9 +81,9 @@
   } else if (lua_type(lua->L, -1) != LUA_TTABLE) {
     st_fail("Lua script %s did not return a table", ft->signal.lua_script);
     return ST_EOF;
-  } else if (!get_method(lua->L, ft->signal.lua_script, "rea", &lua->readref) ||
-        !get_method(lua->L, ft->signal.lua_script, "writ", &lua->writeref) ||
-        !get_method(lua->L, ft->signal.lua_script, "see", &lua->seekref))
+  } else if (!get_method(lua->L, ft->signal.lua_script, "read", &lua->readref) ||
+        !get_method(lua->L, ft->signal.lua_script, "write", &lua->writeref) ||
+        !get_method(lua->L, ft->signal.lua_script, "seek", &lua->seekref))
     return ST_EOF;
   lua_pop(lua->L, 1);           /* Discard function */
 
@@ -135,7 +135,6 @@
   if ((ret = lua_pcall(lua->L, 2, 1, 0)) != 0)
     st_fail("error in Lua script's write method: %d", ret);
   done = lua_tointeger(lua->L, -1);
-  fprintf(stderr, "done %d\n", done);
   lua_pop(lua->L, 1);
 
   return done;