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
cccdd7e3
Commit
cccdd7e3
authored
Jul 22, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: don't flag eof if still demuxed data in buffer
parent
458adc37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
modules/demux/adaptative/Streams.cpp
modules/demux/adaptative/Streams.cpp
+21
-3
modules/demux/adaptative/Streams.hpp
modules/demux/adaptative/Streams.hpp
+2
-0
No files found.
modules/demux/adaptative/Streams.cpp
View file @
cccdd7e3
...
@@ -180,14 +180,19 @@ Stream::status Stream::demux(HTTPConnectionManager *connManager, mtime_t nz_dead
...
@@ -180,14 +180,19 @@ Stream::status Stream::demux(HTTPConnectionManager *connManager, mtime_t nz_dead
{
{
/* need to read, demuxer still buffering, ... */
/* need to read, demuxer still buffering, ... */
if
(
read
(
connManager
)
<=
0
)
if
(
read
(
connManager
)
<=
0
)
return
Stream
::
status_eof
;
{
if
(
output
->
isEmpty
())
if
(
nz_deadline
+
VLC_TS_0
>
output
->
getPCR
())
/* need to read more */
return
Stream
::
status_eof
;
}
else
if
(
nz_deadline
+
VLC_TS_0
>
output
->
getPCR
())
/* need to read more */
{
return
Stream
::
status_buffering
;
return
Stream
::
status_buffering
;
}
}
}
if
(
send
)
if
(
send
)
output
->
sendToDecoder
(
nz_deadline
);
output
->
sendToDecoder
(
nz_deadline
);
return
Stream
::
status_demuxed
;
return
Stream
::
status_demuxed
;
}
}
...
@@ -487,6 +492,19 @@ bool BaseStreamOutput::isSelected() const
...
@@ -487,6 +492,19 @@ bool BaseStreamOutput::isSelected() const
return
b_selected
;
return
b_selected
;
}
}
bool
BaseStreamOutput
::
isEmpty
()
const
{
bool
b_empty
=
true
;
vlc_mutex_lock
(
const_cast
<
vlc_mutex_t
*>
(
&
lock
));
std
::
list
<
Demuxed
*>::
const_iterator
it
;
for
(
it
=
queues
.
begin
();
it
!=
queues
.
end
()
&&
b_empty
;
++
it
)
{
b_empty
=
!
(
*
it
)
->
p_queue
;
}
vlc_mutex_unlock
(
const_cast
<
vlc_mutex_t
*>
(
&
lock
));
return
b_empty
;
}
void
BaseStreamOutput
::
sendToDecoder
(
mtime_t
nzdeadline
)
void
BaseStreamOutput
::
sendToDecoder
(
mtime_t
nzdeadline
)
{
{
vlc_mutex_lock
(
&
lock
);
vlc_mutex_lock
(
&
lock
);
...
...
modules/demux/adaptative/Streams.hpp
View file @
cccdd7e3
...
@@ -114,6 +114,7 @@ namespace adaptative
...
@@ -114,6 +114,7 @@ namespace adaptative
virtual
bool
seekAble
()
const
=
0
;
virtual
bool
seekAble
()
const
=
0
;
virtual
void
setPosition
(
mtime_t
)
=
0
;
virtual
void
setPosition
(
mtime_t
)
=
0
;
virtual
void
sendToDecoder
(
mtime_t
)
=
0
;
virtual
void
sendToDecoder
(
mtime_t
)
=
0
;
virtual
bool
isEmpty
()
const
=
0
;
virtual
bool
reinitsOnSeek
()
const
=
0
;
virtual
bool
reinitsOnSeek
()
const
=
0
;
virtual
bool
switchAllowed
()
const
=
0
;
virtual
bool
switchAllowed
()
const
=
0
;
virtual
bool
isSelected
()
const
=
0
;
virtual
bool
isSelected
()
const
=
0
;
...
@@ -145,6 +146,7 @@ namespace adaptative
...
@@ -145,6 +146,7 @@ namespace adaptative
virtual
bool
seekAble
()
const
;
/* reimpl */
virtual
bool
seekAble
()
const
;
/* reimpl */
virtual
void
setPosition
(
mtime_t
);
/* reimpl */
virtual
void
setPosition
(
mtime_t
);
/* reimpl */
virtual
void
sendToDecoder
(
mtime_t
);
/* reimpl */
virtual
void
sendToDecoder
(
mtime_t
);
/* reimpl */
virtual
bool
isEmpty
()
const
;
/* reimpl */
virtual
bool
reinitsOnSeek
()
const
;
/* reimpl */
virtual
bool
reinitsOnSeek
()
const
;
/* reimpl */
virtual
bool
switchAllowed
()
const
;
/* reimpl */
virtual
bool
switchAllowed
()
const
;
/* reimpl */
virtual
bool
isSelected
()
const
;
/* reimpl */
virtual
bool
isSelected
()
const
;
/* reimpl */
...
...
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