// Duplicate duplicates the media object. func (this *Media) Duplicate() (*Media, error) { if this.ptr == nil { return nil, &VLCError{"Media is nil"} } if c := C.libvlc_media_duplicate(this.ptr); c != nil { return &Media{c}, nil } return nil, checkError() }
// Duplicate duplicates the media object. func (this *Media) Duplicate() (*Media, error) { if this.ptr == nil { return nil, os.EINVAL } if c := C.libvlc_media_duplicate(this.ptr); c != nil { return &Media{c}, nil } return nil, checkError() }