using incorrect timestamp gave bad progress percent
git-svn-id: svn://localhost/HandBrake/trunk@3678
b64f7644-9d1e-0410-96f1-
a4d463321fa5
hb_cond_broadcast( pv->common->next_frame );
hb_unlock( pv->common->mutex );
hb_cond_broadcast( pv->common->next_frame );
hb_unlock( pv->common->mutex );
- UpdateSearchState( w, next->start );
+ UpdateSearchState( w, next_start );
hb_buffer_close( &next );
return HB_WORK_OK;
hb_buffer_close( &next );
return HB_WORK_OK;
* so just push them through for rendering.
*
*/
* so just push them through for rendering.
*
*/
- if( sub_start < start )
+ if( sub_start <= start )
{
sub = hb_fifo_get( subtitle->fifo_raw );
sub->start = sub_start;
sub->stop = sub_stop;
hb_fifo_push( subtitle->fifo_out, sub );
} else {
{
sub = hb_fifo_get( subtitle->fifo_raw );
sub->start = sub_start;
sub->stop = sub_stop;
hb_fifo_push( subtitle->fifo_out, sub );
} else {
+ // sub too early. Leave it in the fifo.