Skip to content

Commit

Permalink
app_lua_sr: updated to use xavp long value field
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 22, 2022
1 parent 4c022cb commit e97541c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/app_lua_sr/app_lua_sr_api.c
Expand Up @@ -1434,15 +1434,14 @@ static void lua_sr_push_xavp_name_table(lua_State *L, sr_xavp_t *xavp,
case SR_XTYPE_NULL:
lua_pushnil(L);
break;
case SR_XTYPE_INT:
i = avp->val.v.i;
case SR_XTYPE_LONG:
i = avp->val.v.l;
lua_pushnumber(L, i);
break;
case SR_XTYPE_STR:
lua_pushlstring(L, avp->val.v.s.s, avp->val.v.s.len);
break;
case SR_XTYPE_TIME:
case SR_XTYPE_LONG:
case SR_XTYPE_LLONG:
case SR_XTYPE_DATA:
lua_pushnil(L);
Expand Down

0 comments on commit e97541c

Please sign in to comment.