Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
1f9127b4
Commit
1f9127b4
authored
Aug 18, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
livedotcom.cpp: use geometric growth for the buffer. Should reduce in much
fewer garbled frames. Still not perfect though.
parent
0f166892
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/demux/livedotcom.cpp
modules/demux/livedotcom.cpp
+4
-4
No files found.
modules/demux/livedotcom.cpp
View file @
1f9127b4
...
@@ -367,8 +367,8 @@ static int Open ( vlc_object_t *p_this )
...
@@ -367,8 +367,8 @@ static int Open ( vlc_object_t *p_this )
tk
->
b_rtcp_sync
=
VLC_FALSE
;
tk
->
b_rtcp_sync
=
VLC_FALSE
;
tk
->
p_out_muxed
=
NULL
;
tk
->
p_out_muxed
=
NULL
;
tk
->
p_es
=
NULL
;
tk
->
p_es
=
NULL
;
tk
->
i_buffer
=
6553
5
;
tk
->
i_buffer
=
6553
6
;
tk
->
p_buffer
=
(
uint8_t
*
)
malloc
(
6553
5
);
tk
->
p_buffer
=
(
uint8_t
*
)
malloc
(
6553
6
);
/* Value taken from mplayer */
/* Value taken from mplayer */
if
(
!
strcmp
(
sub
->
mediumName
(),
"audio"
)
)
if
(
!
strcmp
(
sub
->
mediumName
(),
"audio"
)
)
...
@@ -904,8 +904,8 @@ static void StreamRead( void *p_private, unsigned int i_size, struct timeval pts
...
@@ -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
)
if
(
tk
->
i_buffer
<
i_size
+
1500
&&
tk
->
i_buffer
<
2000000
)
{
{
void
*
p_tmp
;
void
*
p_tmp
;
msg_Dbg
(
p_demux
,
"increasing buffer size to %d"
,
tk
->
i_buffer
+
2000
);
msg_Dbg
(
p_demux
,
"increasing buffer size to %d"
,
tk
->
i_buffer
*
2
);
tk
->
i_buffer
+=
2000
;
tk
->
i_buffer
*=
2
;
p_tmp
=
realloc
(
tk
->
p_buffer
,
tk
->
i_buffer
);
p_tmp
=
realloc
(
tk
->
p_buffer
,
tk
->
i_buffer
);
if
(
p_tmp
==
NULL
)
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