Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
19d44b55
Commit
19d44b55
authored
Sep 11, 2015
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tester.c: fix (again...) resource directory path
parent
b66a5eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tester/mediastreamer2_tester.c
tester/mediastreamer2_tester.c
+4
-3
No files found.
tester/mediastreamer2_tester.c
View file @
19d44b55
...
...
@@ -89,14 +89,15 @@ int main (int argc, char *argv[]) {
mediastreamer2_tester_init
(
NULL
);
// this allows to launch
liblinphone_
tester from outside of tester directory
// this allows to launch tester from outside of tester directory
if
(
strstr
(
argv
[
0
],
".libs"
))
{
char
*
prefix
=
ms_strdup_printf
(
"%s%s"
,
argv
[
0
][
0
]
==
'/'
?
""
:
"./"
,
strstr
(
argv
[
0
],
".libs"
));
int
prefix_length
=
strstr
(
argv
[
0
],
".libs"
)
-
argv
[
0
]
+
1
;
char
*
prefix
=
ms_strdup_printf
(
"%s%.*s"
,
argv
[
0
][
0
]
==
'/'
?
""
:
"./"
,
prefix_length
,
argv
[
0
]);
ms_warning
(
"Resource prefix set to %s"
,
prefix
);
bc_tester_set_resource_dir_prefix
(
prefix
);
bc_tester_set_writable_dir_prefix
(
prefix
);
ms_free
(
prefix
);
}
for
(
i
=
1
;
i
<
argc
;
++
i
)
{
if
(
strcmp
(
argv
[
i
],
"--verbose"
)
==
0
)
{
ortp_set_log_level_mask
(
ORTP_MESSAGE
|
ORTP_WARNING
|
ORTP_ERROR
|
ORTP_FATAL
);
...
...
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