[vlc-devel] [PATCH] negative stop-time causes offset from the end

Aleksandr Pasechnik al at megamicron.net
Mon Jun 8 16:09:36 CEST 2015


ping…

-
Aleksandr (apiarian)

> On Wed Apr 22, 2015, at 13:31, Aleksandr Pasechnik <al at megamicron.net> wrote:
> 
> 
>> On Wed Apr 22, 2015, at 13:18, Francois Cartegnie <fcvlcdev at free.fr> wrote:
>> 
>> Or just a 2 liner,
>> 
>> +    if( p_input->p->i_stop < 0 && duration > 0)
>> +        p_input->p->i_stop += duration;
>> 
>> Francois
>> 
> 
> Though it would still need the 
> 
> mtime_t duration = input_item_GetDuration( p_input->p->p_item );
> 
> line, wouldn’t it? Unless I’m missing a existing globally available duration somewhere?
> 
>> Best regards,
> Aleksandr (apiarian)
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list