diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-08-07 13:26:52 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-08-07 13:26:52 +0200 |
commit | a4798e3cdb0b3758c7f11f289c28663e65da6d6c (patch) | |
tree | e7bfdd33ea8d701cde3f603511d841199a6548ab /modules/vidloop | |
parent | d37323d2abac52ce4d6fc8e421422db0c6bba58e (diff) |
cmd: make it fully re-entrant
Diffstat (limited to 'modules/vidloop')
-rw-r--r-- | modules/vidloop/vidloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/vidloop/vidloop.c b/modules/vidloop/vidloop.c index a9f44fa..c4a596a 100644 --- a/modules/vidloop/vidloop.c +++ b/modules/vidloop/vidloop.c @@ -476,14 +476,14 @@ static const struct cmd cmdv[] = { static int module_init(void) { - return cmd_register(cmdv, ARRAY_SIZE(cmdv)); + return cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv)); } static int module_close(void) { vidloop_stop(NULL, NULL); - cmd_unregister(cmdv); + cmd_unregister(baresip_commands(), cmdv); return 0; } |