aboutsummaryrefslogtreecommitdiff
path: root/src/Storage.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-11 07:07:04 +0100
committerdec05eba <dec05eba@protonmail.com>2022-03-11 07:09:29 +0100
commit80696a506afcee0cca48c22448adacb4aea6eece (patch)
treee1b642940ced3bb01460ef06308d4f86c887b88d /src/Storage.cpp
parent8c142359fd27d73fc6c77dc5d1bd4df831f7c0c1 (diff)
youtube: use mpv stream_cb instead of proxy server
Diffstat (limited to 'src/Storage.cpp')
-rw-r--r--src/Storage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Storage.cpp b/src/Storage.cpp
index effa70b..7554b73 100644
--- a/src/Storage.cpp
+++ b/src/Storage.cpp
@@ -190,7 +190,7 @@ namespace QuickMedia {
return 0;
}
- int file_get_size(const Path &path, size_t *size) {
+ int file_get_size(const Path &path, int64_t *size) {
struct stat file_stat;
memset(&file_stat, 0, sizeof(file_stat));
int ret;
@@ -399,7 +399,7 @@ namespace QuickMedia {
return false;
}
- std::string file_size_to_human_readable_string(size_t bytes) {
+ std::string file_size_to_human_readable_string(int64_t bytes) {
double kb = (double)bytes / 1024.0;
double mb = (double)bytes / 1024.0 / 1024.0;
double gb = (double)bytes / 1024.0 / 1024.0 / 1024.0;