Skip to content

Commit

Permalink
[editor] If seek fails, try a second time. It helps with h26* + hw accel
Browse files Browse the repository at this point in the history
  • Loading branch information
mean committed Oct 4, 2016
1 parent 7f6e241 commit 889532d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions avidemux/common/ADM_editor/src/ADM_edRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,11 @@ uint32_t seg;
uint64_t to=segTime+s->_refStartTimeUs;
if(false==seektoTime(s->_reference,to))
{
if(false==seektoTime(s->_reference,to)) // try twice because the first attempt may fail with VDPAU
{
ADM_warning("Cannot seek to beginning of segment %" PRIu32" at %" PRIu64" ms\n",seg,to/1000);
return false;
}
}
_currentSegment=seg;
int64_t newTime=(int64_t)v->lastDecodedPts+(int64_t)s->_startTimeUs-(int64_t)s->_refStartTimeUs;
Expand Down

0 comments on commit 889532d

Please sign in to comment.