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
44c55e44
Commit
44c55e44
authored
Oct 06, 2014
by
Simon Morlat
Browse files
fix multiple compilation errors
parent
400c26cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
+23
-22
coreapi/linphonecore.c
coreapi/linphonecore.c
+21
-20
mediastreamer2
mediastreamer2
+1
-1
tester/player_tester.c
tester/player_tester.c
+1
-1
No files found.
coreapi/linphonecore.c
View file @
44c55e44
...
...
@@ -399,28 +399,28 @@ static int compress_file(FILE *input_file, FILE *output_file, z_stream *strm) {
int
flush
;
int
ret
;
size_t
output_file_size
=
0
;
do
{
strm
->
avail_in
=
fread
(
in
,
1
,
sizeof
(
in
),
input_file
);
if
(
ferror
(
input_file
))
{
deflateEnd
(
strm
);
return
Z_ERRNO
;
}
flush
=
feof
(
input_file
)
?
Z_FINISH
:
Z_NO_FLUSH
;
strm
->
next_in
=
in
;
if
(
ferror
(
input_file
))
{
deflateEnd
(
strm
);
return
Z_ERRNO
;
}
flush
=
feof
(
input_file
)
?
Z_FINISH
:
Z_NO_FLUSH
;
strm
->
next_in
=
in
;
do
{
strm
->
avail_out
=
sizeof
(
out
);
strm
->
next_out
=
out
;
strm
->
next_out
=
out
;
ret
=
deflate
(
strm
,
flush
);
have
=
sizeof
(
out
)
-
strm
->
avail_out
;
if
(
fwrite
(
out
,
1
,
have
,
output_file
)
!=
have
||
ferror
(
output_file
))
{
deflateEnd
(
strm
);
return
Z_ERRNO
;
}
output_file_size
+=
have
;
if
(
fwrite
(
out
,
1
,
have
,
output_file
)
!=
have
||
ferror
(
output_file
))
{
deflateEnd
(
strm
);
return
Z_ERRNO
;
}
output_file_size
+=
have
;
}
while
(
strm
->
avail_out
==
0
);
}
while
(
flush
!=
Z_FINISH
);
return
output_file_size
;
}
...
...
@@ -432,9 +432,10 @@ static int compress_file(FILE *input_file, FILE *output_file, z_stream *strm) {
static
int
compress_file
(
FILE
*
input_file
,
FILE
*
output_file
)
{
char
buffer
[
131072
];
/* 128kB */
size_t
output_file_size
=
0
;
size_t
bytes
;
while
((
bytes
=
fread
(
buffer
,
1
,
sizeof
(
buffer
),
input_file
)
>
0
)
{
if
(
bytes
<
0
)
return
bytes
;
while
((
bytes
=
fread
(
buffer
,
1
,
sizeof
(
buffer
),
input_file
)
)
>
0
)
{
if
(
bytes
==
0
)
return
bytes
;
fwrite
(
buffer
,
1
,
bytes
,
output_file
);
output_file_size
+=
bytes
;
}
...
...
@@ -454,10 +455,10 @@ static size_t prepare_log_collection_file_to_upload(const char *filename) {
#ifdef HAVE_ZLIB
z_stream
strm
;
strm
.
zalloc
=
Z_NULL
;
strm
.
zfree
=
Z_NULL
;
strm
.
opaque
=
Z_NULL
;
ret
=
deflateInit
(
&
strm
,
Z_DEFAULT_COMPRESSION
);
if
(
ret
!=
Z_OK
)
return
ret
;
strm
.
zfree
=
Z_NULL
;
strm
.
opaque
=
Z_NULL
;
ret
=
deflateInit
(
&
strm
,
Z_DEFAULT_COMPRESSION
);
if
(
ret
!=
Z_OK
)
return
ret
;
#endif
output_filename
=
ortp_strdup_printf
(
"%s/%s"
,
liblinphone_log_collection_path
,
filename
);
...
...
mediastreamer2
@
548ccf41
Subproject commit
91f2782073c776b2d5ce3ab0a12561aea7610068
Subproject commit
548ccf41fa0d3cd3ab48d0eff44d3bed45083312
tester/player_tester.c
View file @
44c55e44
...
...
@@ -20,7 +20,7 @@ static const char *_get_default_video_renderer(void){
static
bool_t
wait_for_eof
(
bool_t
*
eof
,
int
*
time
,
int
time_refresh
,
int
timeout
)
{
while
(
*
time
<
timeout
&&
!*
eof
)
{
usleep
(
time_refresh
*
1000U
);
ms_
usleep
(
time_refresh
*
1000U
);
*
time
+=
time_refresh
;
}
return
*
time
<
timeout
;
...
...
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