aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-02-01 02:09:28 +0100
committermetamuffin <metamuffin@disroot.org>2025-02-01 02:09:28 +0100
commit05ae425c1b906f81d6981e10688cb6949bf9daaf (patch)
treecc6b6677f3a375e291be2ae5ef36563543476315 /common
parentfd1823e7ecf46a230fdf2db009a30931692bc320 (diff)
downloadjellything-05ae425c1b906f81d6981e10688cb6949bf9daaf.tar
jellything-05ae425c1b906f81d6981e10688cb6949bf9daaf.tar.bz2
jellything-05ae425c1b906f81d6981e10688cb6949bf9daaf.tar.zst
add CodecDelay and SeekPreRoll (+ fix TrackUID collision)
Diffstat (limited to 'common')
-rw-r--r--common/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 4d6123c..9d22eec 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -151,6 +151,8 @@ pub struct SourceTrack {
pub codec: String,
pub language: String,
pub default_duration: Option<u64>,
+ pub seek_pre_roll: u64,
+ pub codec_delay: u64,
#[serde(default)]
pub federated: Vec<String>,
}
@@ -178,7 +180,7 @@ pub enum SourceTrackKind {
height: u64,
display_width: Option<u64>,
display_height: Option<u64>,
- display_unit: Option<u64>,
+ display_unit: u64,
fps: Option<f64>,
},
Audio {