X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fframe.rs;h=7455b72a393bd298819b054a680a2d0187f60fc3;hb=ccae5343c71a92519937b9eafd9af0fe0ce3d799;hp=962198e84df7afba64412a1a179d2bf9c64dc326;hpb=d48ee4147254b8019b45647d6a10d3d0c83a5fc0;p=nihav.git diff --git a/src/frame.rs b/src/frame.rs index 962198e..7455b72 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -73,17 +73,18 @@ pub struct NABuffer<'a> { #[allow(dead_code)] #[derive(Clone)] pub struct NACodecInfo { + name: &'static str, properties: NACodecTypeInfo, extradata: Option>>, } impl NACodecInfo { - pub fn new(p: NACodecTypeInfo, edata: Option>) -> Self { + pub fn new(name: &'static str, p: NACodecTypeInfo, edata: Option>) -> Self { let extradata = match edata { None => None, Some(vec) => Some(Rc::new(vec)), }; - NACodecInfo { properties: p, extradata: extradata } + NACodecInfo { name: name, properties: p, extradata: extradata } } pub fn get_properties(&self) -> NACodecTypeInfo { self.properties } pub fn get_extradata(&self) -> Option>> {