format/context: implement set_metadata()
This commit is contained in:
parent
f2fb08e491
commit
ced43fe83b
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user