Commit d5ddecc8 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: avoid drops when not restarting on seek

parent 25575cbe
...@@ -392,15 +392,17 @@ void BaseStreamOutput::setPosition(mtime_t nztime) ...@@ -392,15 +392,17 @@ void BaseStreamOutput::setPosition(mtime_t nztime)
{ {
(*it)->drop(); (*it)->drop();
} }
/* disable appending until restarted */
b_drop = true;
vlc_mutex_unlock(&lock);
if(reinitsOnSeek()) if(reinitsOnSeek())
{
/* disable appending until restarted */
b_drop = true;
vlc_mutex_unlock(&lock);
restart(); restart();
vlc_mutex_lock(&lock);
b_drop = false;
}
vlc_mutex_lock(&lock);
b_drop = false;
pcr = VLC_TS_INVALID; pcr = VLC_TS_INVALID;
vlc_mutex_unlock(&lock); vlc_mutex_unlock(&lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment