gstreamer_play/play_visualization.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use std::ffi::CStr;
4
5use crate::PlayVisualization;
6
7impl PlayVisualization {
8 pub fn name(&self) -> &str {
9 unsafe { CStr::from_ptr((*self.as_ptr()).name).to_str().unwrap() }
10 }
11
12 pub fn description(&self) -> &str {
13 unsafe {
14 CStr::from_ptr((*self.as_ptr()).description)
15 .to_str()
16 .unwrap()
17 }
18 }
19}