media: Add add_option() method
parent
14dd7928bd
commit
6133d47ca7
|
@ -85,6 +85,12 @@ impl Media {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn add_option(&self, value: &str) {
|
||||||
|
unsafe{
|
||||||
|
sys::libvlc_media_add_option(self.ptr, to_cstr(value).as_ptr());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Set the meta of the media.
|
/// Set the meta of the media.
|
||||||
/// (This function will not save the meta, call save_meta in order to save the meta)
|
/// (This function will not save the meta, call save_meta in order to save the meta)
|
||||||
pub fn set_meta(&self, meta: Meta, value: &str) {
|
pub fn set_meta(&self, meta: Meta, value: &str) {
|
||||||
|
|
Loading…
Reference in New Issue