From: Kostya Shishkov Date: Thu, 2 Apr 2026 15:38:54 +0000 (+0200) Subject: nihav_core/frame: add default for StreamType X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=e933f7db4b077901bc976ce30a05fbb94261fd21;p=nihav.git nihav_core/frame: add default for StreamType --- diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index faefff5..f2f955e 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -1256,7 +1256,7 @@ impl fmt::Display for NAFrame { } /// A list of possible stream types. -#[derive(Debug,Clone,Copy,PartialEq)] +#[derive(Default,Debug,Clone,Copy,PartialEq)] #[allow(dead_code)] pub enum StreamType { /// Video stream. @@ -1268,6 +1268,7 @@ pub enum StreamType { /// Any data stream (or might be an unrecognized audio/video stream). Data, /// Nonexistent stream. + #[default] None, }