aboutsummaryrefslogtreecommitdiff
path: root/common/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-17 18:31:41 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-17 18:31:41 +0100
commit843f9e65f009e5fc5f712b4bee5902ec3676d334 (patch)
treed8e53188e79a709348d69303db89032c339ae9e0 /common/src/lib.rs
parente65619de86080d72bf81ba72311dce5325976478 (diff)
downloadjellything-843f9e65f009e5fc5f712b4bee5902ec3676d334.tar
jellything-843f9e65f009e5fc5f712b4bee5902ec3676d334.tar.bz2
jellything-843f9e65f009e5fc5f712b4bee5902ec3676d334.tar.zst
non-seekable mkv almost works
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r--common/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index c4eac09..0eacc42 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -12,7 +12,7 @@ pub struct DirectoryInfo {
pub struct ItemInfo {
pub title: String,
pub duration: f64, // in seconds
- pub tracks: BTreeMap<usize, SourceTrack>,
+ pub tracks: BTreeMap<u64, SourceTrack>,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
@@ -21,6 +21,7 @@ pub struct SourceTrack {
pub name: String,
pub codec: String,
pub language: String,
+ pub codec_private: Option<Vec<u8>>,
}
#[derive(Debug, Clone, Deserialize, Serialize)]