Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ad0ce25c
Commit
ad0ce25c
authored
Feb 20, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Feb 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: set minbuffer for stream stability
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
2269af7b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
...m_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
+4
-0
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
...eam_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
+1
-0
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
..._filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
+3
-0
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
...am_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
+2
-0
No files found.
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
View file @
ad0ce25c
...
@@ -64,3 +64,7 @@ long AbstractAdaptationLogic::getBpsLastChunk () const
...
@@ -64,3 +64,7 @@ long AbstractAdaptationLogic::getBpsLastChunk () const
{
{
return
this
->
bpsLastChunk
;
return
this
->
bpsLastChunk
;
}
}
int
AbstractAdaptationLogic
::
getBufferPercent
()
const
{
return
this
->
bufferedPercent
;
}
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
View file @
ad0ce25c
...
@@ -52,6 +52,7 @@ namespace dash
...
@@ -52,6 +52,7 @@ namespace dash
long
getBpsAvg
()
const
;
long
getBpsAvg
()
const
;
long
getBpsLastChunk
()
const
;
long
getBpsLastChunk
()
const
;
int
getBufferPercent
()
const
;
private:
private:
int
bpsAvg
;
int
bpsAvg
;
...
...
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
View file @
ad0ce25c
...
@@ -55,6 +55,9 @@ Chunk* RateBasedAdaptationLogic::getNextChunk() throw(EOFException)
...
@@ -55,6 +55,9 @@ Chunk* RateBasedAdaptationLogic::getNextChunk() throw(EOFException)
long
bitrate
=
this
->
getBpsAvg
();
long
bitrate
=
this
->
getBpsAvg
();
if
(
this
->
getBufferPercent
()
<
MINBUFFER
)
bitrate
=
0
;
Representation
*
rep
=
this
->
mpdManager
->
getRepresentation
(
this
->
currentPeriod
,
bitrate
,
this
->
width
,
this
->
height
);
Representation
*
rep
=
this
->
mpdManager
->
getRepresentation
(
this
->
currentPeriod
,
bitrate
,
this
->
width
,
this
->
height
);
if
(
rep
==
NULL
)
if
(
rep
==
NULL
)
...
...
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
View file @
ad0ce25c
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_stream.h>
#include <vlc_stream.h>
#define MINBUFFER 30
namespace
dash
namespace
dash
{
{
namespace
logic
namespace
logic
...
...
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