From 4906844cbfd2717a29b434fb7d8f90c5117fddd5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 12 Mar 2025 13:20:44 +0100 Subject: streaming large files --- src/classes/streaminginfo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/classes') diff --git a/src/classes/streaminginfo.rs b/src/classes/streaminginfo.rs index 3ab271d..1f8cadb 100644 --- a/src/classes/streaminginfo.rs +++ b/src/classes/streaminginfo.rs @@ -6,7 +6,7 @@ use super::FromValue; #[derive(Debug, Serialize)] pub struct StreamingInfo { - pub offset: u32, + pub offset: u64, pub path: String, pub size: u32, } @@ -14,7 +14,7 @@ impl FromValue for StreamingInfo { fn from_value(v: Value) -> Result { let fields = v.as_class("StreamingInfo").unwrap(); Ok(StreamingInfo { - offset: fields["offset"].as_u32().unwrap(), + offset: fields["offset"].as_u64().unwrap(), size: fields["size"].as_u32().unwrap(), path: fields["path"].to_owned().as_string().unwrap(), }) -- cgit v1.2.3-70-g09d2