diff options
Diffstat (limited to 'modules/selfview')
-rw-r--r-- | modules/selfview/selfview.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/modules/selfview/selfview.c b/modules/selfview/selfview.c index cf5cdc3..77f0b81 100644 --- a/modules/selfview/selfview.c +++ b/modules/selfview/selfview.c @@ -9,6 +9,19 @@ #include <baresip.h> +/** + * @defgroup selfview selfview + * + * Show a selfview of the captured video stream + * + * Example config: + \verbatim + video_selfview pip # {window,pip} + selfview_size 64x64 + \endverbatim + */ + + /* shared state */ struct selfview { struct lock *lock; /**< Protect frame */ @@ -235,10 +248,9 @@ static struct vidfilt selfview_pip = { static int module_init(void) { - struct pl pl; + struct pl pl = PL("pip"); - if (conf_get(conf_cur(), "video_selfview", &pl)) - return 0; + (void)conf_get(conf_cur(), "video_selfview", &pl); if (0 == pl_strcasecmp(&pl, "window")) vidfilt_register(&selfview_win); |