Skip to content

Commit

Permalink
Start Seek on next segment if seeking direction is NOT preceeding
Browse files Browse the repository at this point in the history
  • Loading branch information
peak3d committed Aug 17, 2017
1 parent aa99206 commit 9d91623
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/AdaptiveStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ bool AdaptiveStream::seek_time(double seek_seconds, bool preceeding, bool &needR
if (choosen_seg < current_rep_->expired_segments_)
choosen_seg = current_rep_->expired_segments_;

if (!preceeding)
++choosen_seg;

const AdaptiveTree::Segment *old_seg(current_seg_), *newSeg(current_rep_->get_segment(choosen_seg));
if (newSeg)
{
Expand Down

0 comments on commit 9d91623

Please sign in to comment.