Commit a703f245 authored by David Fuhrmann's avatar David Fuhrmann Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 29442477)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 90eb56c8
...@@ -1222,7 +1222,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1222,7 +1222,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
var_Get( p_input, "time", &time ); var_Get( p_input, "time", &time );
mtime_t dur = input_item_GetDuration( input_GetItem( p_input ) ); 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))]; 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