]> git.nihav.org Git - nihav.git/commitdiff
nihav_core: introduce common option for forced arbitrary seeks in demuxer
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 1 Oct 2025 16:42:23 +0000 (18:42 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 1 Oct 2025 16:47:25 +0000 (18:47 +0200)
nihav-core/src/options.rs

index d065892dddd4d81f233935ba25e36d38875df6c4..32baa64bb5f89ab9ee285caee38631618437c140 100644 (file)
@@ -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 {