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

local server folder list: fix file size truncation on 32bit platforms as...

local server folder list: fix file size truncation on 32bit platforms as NSInteger is a long long on 64bit platforms only
parent 740435a7
......@@ -185,7 +185,7 @@
if (![item isContainer]) {
MediaServer1ItemObject *mediaItem;
NSInteger mediaSize = 0;
long long mediaSize = 0;
if (tableView == self.searchDisplayController.searchResultsTableView)
mediaItem = _searchData[indexPath.row];
......@@ -204,7 +204,7 @@
mediaSize = [mediaItem.bitrate integerValue] * ((hours * 60 * 60) + (minutes * 60) + seconds);
}
else
mediaSize = [mediaItem.size integerValue];
mediaSize = [mediaItem.size longLongValue];
[cell setSubtitle: [NSString stringWithFormat:@"%0.2f MB (%@)", (float)(mediaSize / 1e6), mediaItem.duration]];
[cell setIsDirectory:NO];
......
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