Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
25575cbe
Commit
25575cbe
authored
Jul 16, 2015
by
François Cartegnie
🤞
Browse files
demux: adaptative: always drop buffers on seek
parent
a7754051
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/adaptative/Streams.cpp
View file @
25575cbe
...
...
@@ -390,9 +390,7 @@ void BaseStreamOutput::setPosition(mtime_t nztime)
std
::
list
<
Demuxed
*>::
const_iterator
it
;
for
(
it
=
queues
.
begin
();
it
!=
queues
.
end
();
++
it
)
{
Demuxed
*
pair
=
*
it
;
if
(
pair
->
p_queue
&&
pair
->
p_queue
->
i_dts
>
VLC_TS_0
+
nztime
)
pair
->
drop
();
(
*
it
)
->
drop
();
}
/* disable appending until restarted */
b_drop
=
true
;
...
...
@@ -493,9 +491,12 @@ BaseStreamOutput::Demuxed::~Demuxed()
void
BaseStreamOutput
::
Demuxed
::
drop
()
{
block_ChainRelease
(
p_queue
);
p_queue
=
NULL
;
pp_queue_last
=
&
p_queue
;
if
(
p_queue
)
{
block_ChainRelease
(
p_queue
);
p_queue
=
NULL
;
pp_queue_last
=
&
p_queue
;
}
}
/* Static callbacks */
...
...
Write
Preview
Supports
Markdown
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