Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
1f9127b4
Commit
1f9127b4
authored
Aug 18, 2004
by
sigmunau
Browse files
livedotcom.cpp: use geometric growth for the buffer. Should reduce in much
fewer garbled frames. Still not perfect though.
parent
0f166892
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/livedotcom.cpp
View file @
1f9127b4
...
...
@@ -367,8 +367,8 @@ static int Open ( vlc_object_t *p_this )
tk
->
b_rtcp_sync
=
VLC_FALSE
;
tk
->
p_out_muxed
=
NULL
;
tk
->
p_es
=
NULL
;
tk
->
i_buffer
=
6553
5
;
tk
->
p_buffer
=
(
uint8_t
*
)
malloc
(
6553
5
);
tk
->
i_buffer
=
6553
6
;
tk
->
p_buffer
=
(
uint8_t
*
)
malloc
(
6553
6
);
/* Value taken from mplayer */
if
(
!
strcmp
(
sub
->
mediumName
(),
"audio"
)
)
...
...
@@ -904,8 +904,8 @@ static void StreamRead( void *p_private, unsigned int i_size, struct timeval pts
if
(
tk
->
i_buffer
<
i_size
+
1500
&&
tk
->
i_buffer
<
2000000
)
{
void
*
p_tmp
;
msg_Dbg
(
p_demux
,
"increasing buffer size to %d"
,
tk
->
i_buffer
+
2
000
);
tk
->
i_buffer
+
=
2
000
;
msg_Dbg
(
p_demux
,
"increasing buffer size to %d"
,
tk
->
i_buffer
*
2
);
tk
->
i_buffer
*
=
2
;
p_tmp
=
realloc
(
tk
->
p_buffer
,
tk
->
i_buffer
);
if
(
p_tmp
==
NULL
)
{
...
...
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