]> git.nihav.org Git - nihav.git/commitdiff
nihav_core/frame: add default for StreamType
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 2 Apr 2026 15:38:54 +0000 (17:38 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 2 Apr 2026 15:38:54 +0000 (17:38 +0200)
nihav-core/src/frame.rs

index faefff547d04ef504a43bc6646431972a16e5481..f2f955e31d0dcf071c89c81a1d37d41288d913cd 100644 (file)
@@ -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,
 }