[vlc-devel] [PATCH] negative stop-time causes offset from the	end
    Aleksandr Pasechnik 
    al at megamicron.net
       
    Wed Apr 22 19:31:26 CEST 2015
    
    
  
> 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)
    
    
More information about the vlc-devel
mailing list