From: Kostya Shishkov Date: Wed, 1 Oct 2025 16:42:23 +0000 (+0200) Subject: nihav_core: introduce common option for forced arbitrary seeks in demuxer X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=08321117b8edacbea6efad621cb0257d5f3da1f3;p=nihav.git nihav_core: introduce common option for forced arbitrary seeks in demuxer --- diff --git a/nihav-core/src/options.rs b/nihav-core/src/options.rs index d065892..32baa64 100644 --- a/nihav-core/src/options.rs +++ b/nihav-core/src/options.rs @@ -26,6 +26,11 @@ pub const FRAME_SKIP_OPTION_VAL_KEYFRAME: &str = "keyframes"; /// Frame skipping option value for decoding only intra frames. pub const FRAME_SKIP_OPTION_VAL_INTRA: &str = "intra"; +/// Common name for forcing seek outside defined seekpoints. +pub const FORCE_SEEK_OPTION: &str = "force_seek"; +/// Common description for forcing seek outside defined seekpoints. +pub const FORCE_SEEK_OPTION_DESC: &str = "Allow seeking to arbitrary positions"; + /// A list specifying option parsing and validating errors. #[derive(Clone,Copy,Debug,PartialEq)] pub enum OptionError {