media: Add add_option() method

merge-requests/7/merge
Romain Roffé 2021-09-22 15:49:30 +02:00
parent 14dd7928bd
commit 6133d47ca7
1 changed files with 6 additions and 0 deletions

View File

@ -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) {