mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Do not fail an assertion if QRCode support is not built-in, just print an error message.
This commit is contained in:
parent
4e6c089046
commit
e70294f3f3
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue