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
6da0f4be
Commit
6da0f4be
authored
Jul 25, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: add description to es
parent
07fb2c88
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
modules/demux/adaptative/PlaylistManager.cpp
modules/demux/adaptative/PlaylistManager.cpp
+4
-0
modules/demux/adaptative/Streams.cpp
modules/demux/adaptative/Streams.cpp
+11
-0
modules/demux/adaptative/Streams.hpp
modules/demux/adaptative/Streams.hpp
+4
-0
modules/demux/adaptative/playlist/BaseAdaptationSet.h
modules/demux/adaptative/playlist/BaseAdaptationSet.h
+1
-0
No files found.
modules/demux/adaptative/PlaylistManager.cpp
View file @
6da0f4be
...
...
@@ -117,7 +117,11 @@ bool PlaylistManager::setupPeriod()
if
(
!
languages
.
empty
())
st
->
setLanguage
(
languages
.
front
());
if
(
!
set
->
description
.
Get
().
empty
())
st
->
setDescription
(
set
->
description
.
Get
());
st
->
create
(
logic
,
tracker
,
streamOutputFactory
);
streams
.
push_back
(
st
);
}
catch
(
int
)
{
delete
st
;
...
...
modules/demux/adaptative/Streams.cpp
View file @
6da0f4be
...
...
@@ -87,6 +87,7 @@ void Stream::updateFormat(StreamFormat &newformat)
if
(
!
output
)
throw
VLC_EGENERIC
;
output
->
setLanguage
(
language
);
output
->
setDescription
(
description
);
}
void
Stream
::
setLanguage
(
const
std
::
string
&
lang
)
...
...
@@ -94,6 +95,11 @@ void Stream::setLanguage(const std::string &lang)
language
=
lang
;
}
void
Stream
::
setDescription
(
const
std
::
string
&
desc
)
{
description
=
desc
;
}
bool
Stream
::
isEOF
()
const
{
return
false
;
...
...
@@ -329,6 +335,11 @@ void AbstractStreamOutput::setLanguage(const std::string &lang)
language
=
lang
;
}
void
AbstractStreamOutput
::
setDescription
(
const
std
::
string
&
desc
)
{
description
=
desc
;
}
const
StreamFormat
&
AbstractStreamOutput
::
getStreamFormat
()
const
{
return
format
;
...
...
modules/demux/adaptative/Streams.hpp
View file @
6da0f4be
...
...
@@ -69,6 +69,7 @@ namespace adaptative
const
AbstractStreamOutputFactory
*
);
void
updateFormat
(
StreamFormat
&
);
void
setLanguage
(
const
std
::
string
&
);
void
setDescription
(
const
std
::
string
&
);
bool
isEOF
()
const
;
mtime_t
getPCR
()
const
;
mtime_t
getFirstDTS
()
const
;
...
...
@@ -97,6 +98,7 @@ namespace adaptative
bool
disabled
;
bool
eof
;
std
::
string
language
;
std
::
string
description
;
const
AbstractStreamOutputFactory
*
streamOutputFactory
;
};
...
...
@@ -108,6 +110,7 @@ namespace adaptative
virtual
~
AbstractStreamOutput
();
void
setLanguage
(
const
std
::
string
&
);
void
setDescription
(
const
std
::
string
&
);
const
StreamFormat
&
getStreamFormat
()
const
;
virtual
void
pushBlock
(
block_t
*
,
bool
)
=
0
;
virtual
mtime_t
getPCR
()
const
;
...
...
@@ -127,6 +130,7 @@ namespace adaptative
mtime_t
pcr
;
int
group
;
std
::
string
language
;
std
::
string
description
;
private:
StreamFormat
format
;
...
...
modules/demux/adaptative/playlist/BaseAdaptationSet.h
View file @
6da0f4be
...
...
@@ -52,6 +52,7 @@ namespace adaptative
bool
getBitstreamSwitching
()
const
;
void
addRepresentation
(
BaseRepresentation
*
rep
);
void
debug
(
vlc_object_t
*
,
int
=
0
)
const
;
Property
<
std
::
string
>
description
;
protected:
std
::
vector
<
BaseRepresentation
*>
representations
;
...
...
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