[grilo-plugins/0.2.x: 12/30] lua-factory: Fix the GrlNetWc options being ignored



commit 605e47187d2bcb78ccc1d33f38441307602280e0
Author: George Sedov <radist morse gmail com>
Date:   Wed Aug 5 03:58:30 2015 +0300

    lua-factory: Fix the GrlNetWc options being ignored
    
    It will be ignored if the net options are on top of the stack, which is
    nearly every case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753141

 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 90acfa4..191b43e 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -662,7 +662,7 @@ net_wc_new_with_options(lua_State *L,
   GrlNetWc *wc;
 
   wc = grl_net_wc_new ();
-  if (arg_offset < lua_gettop (L) && lua_istable (L, arg_offset)) {
+  if (arg_offset <= lua_gettop (L) && lua_istable (L, arg_offset)) {
     /* Set GrlNetWc options */
     lua_pushnil (L);
     while (lua_next (L, arg_offset) != 0) {


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