Commit ae7b7ece authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: minor code cleanup

parent 2d4b2ba4
...@@ -367,17 +367,18 @@ clear: ...@@ -367,17 +367,18 @@ clear:
if (!p_input) if (!p_input)
return 0; return 0;
else if (input_Control(p_input, INPUT_GET_BOOKMARKS, &pp_bookmarks, &i_bookmarks) != VLC_SUCCESS) {
int returnValue = input_Control(p_input, INPUT_GET_BOOKMARKS, &pp_bookmarks, &i_bookmarks);
vlc_object_release(p_input); vlc_object_release(p_input);
if (returnValue != VLC_SUCCESS)
return 0; return 0;
} else {
vlc_object_release(p_input);
// Clear the bookmark list
for (int i = 0; i < i_bookmarks; i++) for (int i = 0; i < i_bookmarks; i++)
vlc_seekpoint_Delete(pp_bookmarks[i]); vlc_seekpoint_Delete(pp_bookmarks[i]);
free(pp_bookmarks); free(pp_bookmarks);
return i_bookmarks; return i_bookmarks;
}
} }
- (id)tableView:(NSTableView *)theDataTable objectValueForTableColumn: (NSTableColumn *)theTableColumn row: (NSInteger)row - (id)tableView:(NSTableView *)theDataTable objectValueForTableColumn: (NSTableColumn *)theTableColumn row: (NSInteger)row
......
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