vlc/vlc-2.2 | branch: master | David Fuhrmann <[email protected]> | Sun Jul 20 17:35:24 2014 +0200| [a08222231a339d3f9fbdc60727e5a5530054d40d] | committer: David Fuhrmann
macosx: avoid possible index out of range problem in bookmarks table view (cherry picked from commit 45640caa8890442b3743a77deb30a57fdbbbe94e) Signed-off-by: David Fuhrmann <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=a08222231a339d3f9fbdc60727e5a5530054d40d --- modules/gui/macosx/bookmarks.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gui/macosx/bookmarks.m b/modules/gui/macosx/bookmarks.m index e82479a..adb1b6a 100644 --- a/modules/gui/macosx/bookmarks.m +++ b/modules/gui/macosx/bookmarks.m @@ -397,6 +397,8 @@ clear: return @""; else if (input_Control(p_input, INPUT_GET_BOOKMARKS, &pp_bookmarks, &i_bookmarks) != VLC_SUCCESS) ret = @""; + else if (row >= i_bookmarks) + ret = @""; else { NSString * identifier = [theTableColumn identifier]; if ([identifier isEqualToString: @"description"]) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
