[vlc-devel] [PATCH] negative stop-time causes offset from the end
Aleksandr Pasechnik
al at megamicron.net
Wed Apr 1 16:14:53 CEST 2015
> On Fri Mar 20, 2015, at 20:45, Francois Cartegnie <fcvlcdev at free.fr> wrote:
>
> Le 21/03/2015 01:40, Aleksandr Pasechnik a écrit :
>> + mtime_t duration = input_item_GetDuration( p_input->p->p_item );
>> + if( duration > 0 && duration + p_input->p->i_stop > 0 )
>
> duration >= - p_input->p->i_stop
>
Should that include the equality condition? If the duration is equal to the negative stop time, the stop time would end up being set to 0, a value that signals that stop time should be ignored anyway. Correct?
So maybe just do the following if we don’t want the addition in the if statement:
if( duration > 0 && duration > - p_input->p->i_stop )
—
Best regards,
Aleksandr (apiarian)
More information about the vlc-devel
mailing list