format/context: implement set_metadata()

This commit is contained in:
lummax 2015-09-03 11:16:17 +02:00 committed by meh
parent f2fb08e491
commit ced43fe83b

View File

@ -71,6 +71,12 @@ impl Output {
StreamMut::wrap(ptr) StreamMut::wrap(ptr)
} }
} }
pub fn set_metadata(&mut self, dictionary: Dictionary) {
unsafe {
(*self.as_mut_ptr()).metadata = dictionary.take();
}
}
} }
impl Deref for Output { impl Deref for Output {