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
6514a495
Commit
6514a495
authored
Oct 17, 2019
by
Peio Rigaux
Browse files
Some encoders does not support qcif. To avoid errors, CIF is forced on android encoders for testers
parent
6111d313
Changes
1
Hide whitespace changes
Inline
Side-by-side
tester/tester.c
View file @
6514a495
...
...
@@ -383,6 +383,13 @@ void linphone_core_manager_configure (LinphoneCoreManager *mgr) {
cam
=
ms_web_cam_manager_get_cam
(
ms_factory_get_web_cam_manager
(
linphone_core_get_ms_factory
(
mgr
->
lc
)),
"Mire: Mire (synthetic moving picture)"
);
//Usefull especially for encoders not supporting qcif
#ifdef __ANDROID__
MSVideoSize
vsize
=
MS_VIDEO_SIZE_CIF
;
linphone_core_set_preferred_video_size
(
mgr
->
lc
,
vsize
);
#endif
if
(
cam
==
NULL
)
{
MSWebCamDesc
*
desc
=
ms_mire_webcam_desc_get
();
if
(
desc
){
...
...
@@ -1956,7 +1963,7 @@ int liblinphone_tester_copy_file(const char *from, const char *to)
FILE
*
in
,
*
out
;
char
buf
[
256
];
size_t
n
;
/* Open "from" file for reading */
in
=
fopen
(
from
,
"rb"
);
if
(
in
==
NULL
)
...
...
@@ -1964,7 +1971,7 @@ int liblinphone_tester_copy_file(const char *from, const char *to)
ms_error
(
"Can't open %s for reading: %s
\n
"
,
from
,
strerror
(
errno
));
return
1
;
}
/* Open "to" file for writing (will truncate existing files) */
out
=
fopen
(
to
,
"wb"
);
if
(
out
==
NULL
)
...
...
@@ -1973,7 +1980,7 @@ int liblinphone_tester_copy_file(const char *from, const char *to)
fclose
(
in
);
return
2
;
}
/* Copy data from "in" to "out" */
while
(
(
n
=
fread
(
buf
,
sizeof
(
char
),
sizeof
(
buf
),
in
))
>
0
)
{
...
...
@@ -1985,11 +1992,9 @@ int liblinphone_tester_copy_file(const char *from, const char *to)
return
3
;
}
}
fclose
(
in
);
fclose
(
out
);
return
0
;
}
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