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
3258f429
Commit
3258f429
authored
Jul 17, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: report es selection
parent
c7e83e1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
modules/demux/adaptative/Streams.cpp
modules/demux/adaptative/Streams.cpp
+20
-0
modules/demux/adaptative/Streams.hpp
modules/demux/adaptative/Streams.hpp
+3
-0
No files found.
modules/demux/adaptative/Streams.cpp
View file @
3258f429
...
...
@@ -141,6 +141,11 @@ bool Stream::seekAble() const
return
(
output
&&
output
->
seekAble
());
}
bool
Stream
::
isSelected
()
const
{
return
output
&&
output
->
isSelected
();
}
Stream
::
status
Stream
::
demux
(
HTTPConnectionManager
*
connManager
,
mtime_t
nz_deadline
,
bool
send
)
{
if
(
!
output
)
...
...
@@ -442,6 +447,21 @@ bool BaseStreamOutput::switchAllowed() const
return
b_allowed
;
}
bool
BaseStreamOutput
::
isSelected
()
const
{
bool
b_selected
=
false
;
vlc_mutex_lock
(
const_cast
<
vlc_mutex_t
*>
(
&
lock
));
std
::
list
<
Demuxed
*>::
const_iterator
it
;
for
(
it
=
queues
.
begin
();
it
!=
queues
.
end
()
&&
!
b_selected
;
++
it
)
{
const
Demuxed
*
pair
=
*
it
;
if
(
pair
->
es_id
)
es_out_Control
(
realdemux
->
out
,
ES_OUT_GET_ES_STATE
,
pair
->
es_id
,
&
b_selected
);
}
vlc_mutex_unlock
(
const_cast
<
vlc_mutex_t
*>
(
&
lock
));
return
b_selected
;
}
void
BaseStreamOutput
::
sendToDecoder
(
mtime_t
nzdeadline
)
{
vlc_mutex_lock
(
&
lock
);
...
...
modules/demux/adaptative/Streams.hpp
View file @
3258f429
...
...
@@ -74,6 +74,7 @@ namespace adaptative
int
getGroup
()
const
;
int
esCount
()
const
;
bool
seekAble
()
const
;
bool
isSelected
()
const
;
typedef
enum
{
status_eof
,
status_buffering
,
status_demuxed
}
status
;
status
demux
(
HTTPConnectionManager
*
,
mtime_t
,
bool
);
bool
setPosition
(
mtime_t
,
bool
);
...
...
@@ -112,6 +113,7 @@ namespace adaptative
virtual
void
sendToDecoder
(
mtime_t
)
=
0
;
virtual
bool
reinitsOnSeek
()
const
=
0
;
virtual
bool
switchAllowed
()
const
=
0
;
virtual
bool
isSelected
()
const
=
0
;
protected:
demux_t
*
realdemux
;
...
...
@@ -142,6 +144,7 @@ namespace adaptative
virtual
void
sendToDecoder
(
mtime_t
);
/* reimpl */
virtual
bool
reinitsOnSeek
()
const
;
/* reimpl */
virtual
bool
switchAllowed
()
const
;
/* reimpl */
virtual
bool
isSelected
()
const
;
/* reimpl */
void
setTimestampOffset
(
mtime_t
);
protected:
...
...
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