#[macro_use]
extern crate nom;

pub mod metadata;
mod utility;

use metadata::metadata;

pub struct Stream<'a> {
  pub metadata: Vec<metadata::Block<'a>>,
  //frames: Vec<u32>
}

named!(stream <&[u8], Stream>,
  chain!(
    blocks: metadata,
    || {
      Stream {
        metadata: blocks,
      }
    }
  )
);

#[macro_use]
extern crate nom;

pub mod metadata;
mod utility;

use metadata::metadata;

pub struct Stream<'a> {
  pub meta_data: Vec<metadata::Block<'a>>,
  //frames: Vec<u32>
}

named!(stream <&[u8], Stream>,
  chain!(
    blocks: metadata,
    || {
      Stream {
        meta_data: blocks,
      }
    }
  )
);

--- 
+++ 
@@ -7,7 +7,7 @@
 use metadata::metadata;
 
 pub struct Stream<'a> {
-  pub meta_data: Vec<metadata::Block<'a>>,
+  pub metadata: Vec<metadata::Block<'a>>,
   //frames: Vec<u32>
 }
 
@@ -16,7 +16,7 @@
     blocks: metadata,
     || {
       Stream {
-        meta_data: blocks,
+        metadata: blocks,
       }
     }
   )
Change meta_data in Stream type to metadata
