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
e9b2d8d4
Commit
e9b2d8d4
authored
Sep 10, 2015
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tester.c: fix resource directory path
parent
93cf916a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tester/mediastreamer2_tester.c
tester/mediastreamer2_tester.c
+5
-5
No files found.
tester/mediastreamer2_tester.c
View file @
e9b2d8d4
...
...
@@ -89,12 +89,12 @@ int main (int argc, char *argv[]) {
mediastreamer2_tester_init
(
NULL
);
// this allows to launch liblinphone_tester from outside of tester directory
if
(
strstr
(
argv
[
0
],
".libs"
))
{
char
res_dir
[
128
]
=
{
0
};
// this allows to launch liblinphone_tester from outside of tester directory
strncpy
(
res_dir
,
argv
[
0
],
strstr
(
argv
[
0
],
".libs"
)
-
argv
[
0
]);
bc_tester_set_resource_dir_prefix
(
res_dir
);
bc_tester_set_writable_dir_prefix
(
res_dir
);
char
*
prefix
=
ms_strdup_printf
(
"%s%s"
,
argv
[
0
][
0
]
==
'/'
?
""
:
"./"
,
strstr
(
argv
[
0
],
".libs"
));
bc_tester_set_resource_dir_prefix
(
prefix
);
bc_tester_set_writable_dir_prefix
(
prefix
);
ms_free
(
prefix
);
}
for
(
i
=
1
;
i
<
argc
;
++
i
)
{
...
...
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