Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
daff83c6
Commit
daff83c6
authored
Jul 18, 2016
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptive: rename prepareFormatChange
and add a no PCR reset condition
parent
ec854b64
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
modules/demux/adaptive/Streams.cpp
modules/demux/adaptive/Streams.cpp
+5
-4
modules/demux/adaptive/Streams.hpp
modules/demux/adaptive/Streams.hpp
+1
-1
modules/demux/hls/HLSStreams.cpp
modules/demux/hls/HLSStreams.cpp
+2
-2
modules/demux/hls/HLSStreams.hpp
modules/demux/hls/HLSStreams.hpp
+1
-1
No files found.
modules/demux/adaptive/Streams.cpp
View file @
daff83c6
...
...
@@ -105,7 +105,7 @@ AbstractStream::~AbstractStream()
vlc_mutex_destroy
(
&
lock
);
}
void
AbstractStream
::
prepare
FormatChange
(
)
void
AbstractStream
::
prepare
Restart
(
bool
b_discontinuity
)
{
if
(
demuxer
)
{
...
...
@@ -113,7 +113,8 @@ void AbstractStream::prepareFormatChange()
demuxer
->
drain
();
/* Enqueue Del Commands for all current ES */
fakeesout
->
scheduleAllForDeletion
();
fakeesout
->
schedulePCRReset
();
if
(
b_discontinuity
)
fakeesout
->
schedulePCRReset
();
commandsqueue
->
Commit
();
/* ignoring demuxer's own Del commands */
commandsqueue
->
setDrop
(
true
);
...
...
@@ -281,7 +282,7 @@ AbstractStream::buffering_status AbstractStream::bufferize(mtime_t nz_deadline,
if
(
discontinuity
)
{
msg_Dbg
(
p_realdemux
,
"Flushing on format change"
);
prepare
FormatChange
();
prepare
Restart
();
discontinuity
=
false
;
commandsqueue
->
setFlush
();
vlc_mutex_unlock
(
&
lock
);
...
...
@@ -318,7 +319,7 @@ AbstractStream::buffering_status AbstractStream::bufferize(mtime_t nz_deadline,
if
(
discontinuity
)
{
msg_Dbg
(
p_realdemux
,
"Flushing on discontinuity"
);
prepare
FormatChange
();
prepare
Restart
();
discontinuity
=
false
;
commandsqueue
->
setFlush
();
vlc_mutex_unlock
(
&
lock
);
...
...
modules/demux/adaptive/Streams.hpp
View file @
daff83c6
...
...
@@ -101,7 +101,7 @@ namespace adaptive
virtual
bool
startDemux
();
virtual
bool
restartDemux
();
virtual
void
prepare
FormatChange
(
);
virtual
void
prepare
Restart
(
bool
=
true
);
bool
discontinuity
;
...
...
modules/demux/hls/HLSStreams.cpp
View file @
daff83c6
...
...
@@ -86,9 +86,9 @@ AbstractDemuxer * HLSStream::createDemux(const StreamFormat &format)
return
ret
;
}
void
HLSStream
::
prepare
FormatChange
(
)
void
HLSStream
::
prepare
Restart
(
bool
b_discontinuity
)
{
AbstractStream
::
prepare
FormatChange
(
);
AbstractStream
::
prepare
Restart
(
b_discontinuity
);
if
((
unsigned
)
format
==
StreamFormat
::
PACKEDAAC
)
{
fakeesout
->
setTimestampOffset
(
i_aac_offset
);
...
...
modules/demux/hls/HLSStreams.hpp
View file @
daff83c6
...
...
@@ -35,7 +35,7 @@ namespace hls
protected:
virtual
AbstractDemuxer
*
createDemux
(
const
StreamFormat
&
);
/* reimpl */
virtual
bool
restartDemux
();
/* reimpl */
virtual
void
prepare
FormatChange
(
);
/* reimpl */
virtual
void
prepare
Restart
(
bool
=
true
);
/* reimpl */
virtual
block_t
*
checkBlock
(
block_t
*
,
bool
);
/* 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