From 6133d47ca70294444432e68b75a25b8713bc5506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Roff=C3=A9?= Date: Wed, 22 Sep 2021 15:49:30 +0200 Subject: [PATCH] media: Add add_option() method --- src/media.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/media.rs b/src/media.rs index f100d01..ab5338b 100644 --- a/src/media.rs +++ b/src/media.rs @@ -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. /// (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) {