summaryrefslogtreecommitdiff
path: root/src/call.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-05-23 14:55:34 +0200
committerGitHub <noreply@github.com>2017-05-23 14:55:34 +0200
commit97229c0c2e13415d0fa1c808742c22adeb9b2f33 (patch)
tree06772df40db156723e13e40466dac2916f5d4a7b /src/call.c
parent91e3b2c11f617a126679b3d15239bdb0c1c72e4c (diff)
Vidsrc api reentrant (#256)
* vidsrc: make the API re-entrant * vidsrc: update all modules to new API
Diffstat (limited to 'src/call.c')
-rw-r--r--src/call.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/call.c b/src/call.c
index 15c8e8c..f164ec1 100644
--- a/src/call.c
+++ b/src/call.c
@@ -599,7 +599,8 @@ int call_alloc(struct call **callp, const struct config *cfg, struct list *lst,
video source or video display */
use_video = (vidmode != VIDMODE_OFF)
&& (list_head(account_vidcodecl(call->acc)) != NULL)
- && (NULL != vidsrc_find(NULL) || NULL != vidisp_find(NULL));
+ && (NULL != vidsrc_find(baresip_vidsrcl(), NULL)
+ || NULL != vidisp_find(NULL));
debug("call: use_video=%d\n", use_video);