summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@users.noreply.github.com>2016-11-27 09:17:04 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-11-27 09:17:04 +0100
commit6eed48b36e867753ec4a2e5ee18669d3ee02b8b2 (patch)
tree0a5dcc3eff6e9e46a030b3dcf47d0f67bd785032 /modules
parent6860c1b372d3de570bda883c2bea58ede14dec4b (diff)
snapshot: fix after changes in command API (#174)
Diffstat (limited to 'modules')
-rw-r--r--modules/snapshot/snapshot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/snapshot/snapshot.c b/modules/snapshot/snapshot.c
index b71edbd..9428a7f 100644
--- a/modules/snapshot/snapshot.c
+++ b/modules/snapshot/snapshot.c
@@ -77,21 +77,21 @@ static struct vidfilt snapshot = {
static const struct cmd cmdv[] = {
- {'O', 0, "Take video snapshot", do_snapshot },
+ {"snapshot", 'O', 0, "Take video snapshot", do_snapshot },
};
static int module_init(void)
{
vidfilt_register(&snapshot);
- return cmd_register(cmdv, ARRAY_SIZE(cmdv));
+ return cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
}
static int module_close(void)
{
vidfilt_unregister(&snapshot);
- cmd_unregister(cmdv);
+ cmd_unregister(baresip_commands(), cmdv);
return 0;
}