[vlc-commits] macosx: do not display double negative time when duration is unknown (0)

David Fuhrmann git at videolan.org
Sun Apr 29 21:25:41 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Apr 29 21:20:31 2012 +0200| [29442477ade3b0f18c2c0ae2a0da6c112beed4c0] | committer: David Fuhrmann

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=29442477ade3b0f18c2c0ae2a0da6c112beed4c0
---

 modules/gui/macosx/MainWindow.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 04a98a4..9168c8f 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -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))];
         }



More information about the vlc-commits mailing list