[vlc-devel] [PATCH] gui/macosx: bookmarks: fix typo in terms of indices variable
Filip Roséen
filip at atch.se
Fri May 19 04:52:04 CEST 2017
The variable for the current index is named "row", and not "i".
---
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. );
--
2.12.2
More information about the vlc-devel
mailing list