Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
e1485271
Commit
e1485271
authored
Nov 12, 2015
by
Simon Morlat
Browse files
fix crash in linphone_core_create_call_params(), try to workaround an sqlite problem on iOS
parent
386dccb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
coreapi/linphonecore.c
coreapi/linphonecore.c
+5
-1
coreapi/message_storage.c
coreapi/message_storage.c
+7
-0
mediastreamer2
mediastreamer2
+1
-1
No files found.
coreapi/linphonecore.c
View file @
e1485271
...
...
@@ -6703,7 +6703,11 @@ static LinphoneCallParams *_create_call_params(LinphoneCore *lc){
*/
LinphoneCallParams
*
linphone_core_create_call_params
(
LinphoneCore
*
lc
,
LinphoneCall
*
call
){
if
(
!
call
)
return
_create_call_params
(
lc
);
return
linphone_call_params_copy
(
call
->
params
);
if
(
call
->
params
){
return
linphone_call_params_copy
(
call
->
params
);
}
ms_error
(
"linphone_core_create_call_params(): call [%p] is not in a state where call params can be created or used."
,
call
);
return
NULL
;
}
const
char
*
linphone_reason_to_string
(
LinphoneReason
err
){
...
...
coreapi/message_storage.c
View file @
e1485271
...
...
@@ -640,6 +640,13 @@ static int _linphone_sqlite3_open(const char *db_file, sqlite3 **db) {
ms_error
(
"Cannot set sqlite3 temporary store to memory: %s."
,
errmsg
);
sqlite3_free
(
errmsg
);
}
#if TARGET_OS_IPHONE
ret
=
sqlite3_exec
(
*
db
,
"PRAGMA journal_mode = OFF"
,
NULL
,
NULL
,
&
errmsg
);
if
(
ret
!=
SQLITE_OK
)
{
ms_error
(
"Cannot set sqlite3 journal_mode to off: %s."
,
errmsg
);
sqlite3_free
(
errmsg
);
}
#endif
return
ret
;
}
...
...
mediastreamer2
@
c04a7920
Subproject commit c
dd6eb1f2684982f01a9650e8a3fe6c89011d156
Subproject commit c
04a7920a4d4a2c72d189cef6f20b1b91251e645
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment