Commit 29442477 authored by David Fuhrmann's avatar David Fuhrmann

macosx: do not display double negative time when duration is unknown (0)

parent cd0148a5
......@@ -1222,7 +1222,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
var_Get( p_input, "time", &time );
mtime_t dur = input_item_GetDuration( input_GetItem( p_input ) );
if( [o_time_fld timeRemaining] && dur != -1 )
if( [o_time_fld timeRemaining] && dur > 0 )
{
o_time = [NSString stringWithFormat: @"-%s", secstotimestr( psz_time, ((dur - time.i_time) / 1000000))];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment