Merge branch 'send'

merge-requests/7/merge
Aron Heinecke 2018-11-25 04:29:15 +01:00
commit c37c697d57
No known key found for this signature in database
GPG Key ID: 395630FB41D3CC71
3 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,8 @@ pub struct Instance {
}
unsafe impl Send for Instance {}
impl Instance {
/// Create and initialize a libvlc instance with specified args.
/// Note: args.len() has to be less or equal to i32::MAX

View File

@ -12,6 +12,8 @@ pub struct Media {
pub(crate) ptr: *mut sys::libvlc_media_t,
}
unsafe impl Send for Media {}
impl Media {
/// Create a media with a certain given media resource location, for instance a valid URL.
pub fn new_location(instance: &Instance, mrl: &str) -> Option<Media> {

View File

@ -15,6 +15,8 @@ pub struct MediaPlayer {
pub(crate) ptr: *mut sys::libvlc_media_player_t,
}
unsafe impl Send for MediaPlayer {}
impl MediaPlayer {
/// Create an empty Media Player object
pub fn new(instance: &Instance) -> Option<MediaPlayer> {