[vlc-commits] gui/macosx: bookmarks: fix typo in terms of indices variable

Filip Roséen git at videolan.org
Fri May 19 08:56:35 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Fri May 19 04:52:04 2017 +0200| [f65b28d920f60e2f7ec77ade9527fd4cec1e7dc2] | committer: Jean-Baptiste Kempf

gui/macosx: bookmarks: fix typo in terms of indices variable

The variable for the current index is named "row", and not "i".

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/macosx/VLCBookmarksWindowController.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCBookmarksWindowController.m b/modules/gui/macosx/VLCBookmarksWindowController.m
index a90102ecd9..1570cb6932 100644
--- a/modules/gui/macosx/VLCBookmarksWindowController.m
+++ b/modules/gui/macosx/VLCBookmarksWindowController.m
@@ -176,7 +176,7 @@
     }
 
     [_editNameTextField setStringValue: toNSStr(pp_bookmarks[row]->psz_name)];
-    mtime_t total = pp_bookmarks[i]->i_time_offset;
+    mtime_t total = pp_bookmarks[row]->i_time_offset;
     unsigned hour = ( total / ( CLOCK_FREQ * 3600 ) );
     unsigned min = ( total % ( CLOCK_FREQ * 3600 ) ) / ( CLOCK_FREQ * 60 );
     float    sec = ( total % ( CLOCK_FREQ * 60 ) ) / ( CLOCK_FREQ * 1. );



More information about the vlc-commits mailing list