From e70294f3f358833d5e483b5986c470b7ecbed251 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 18 Jun 2018 14:54:06 +0200 Subject: [PATCH] Do not fail an assertion if QRCode support is not built-in, just print an error message. --- tester/video_tester.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tester/video_tester.c b/tester/video_tester.c index b92aba9fd..da9b7a4be 100644 --- a/tester/video_tester.c +++ b/tester/video_tester.c @@ -92,8 +92,10 @@ static void _decode_qrcode(const char* image_path, image_rect *rect) { LinphoneCoreManager* lcm = NULL; MSFactory* factory = NULL; factory = ms_factory_new_with_voip(); - if (!BC_ASSERT_PTR_NOT_NULL(ms_factory_lookup_filter_by_name(factory, "MSQRCodeReader"))) + if (!ms_factory_lookup_filter_by_name(factory, "MSQRCodeReader")) { + ms_error("QRCode support is not built-in"); goto end; + } lcm =linphone_core_manager_create("empty_rc"); LinphoneCoreCbs* cbs = NULL;