mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-21 16:41:03 +00:00
player: fix clippy error
This commit is contained in:
parent
ac06bae594
commit
1fe43d7da3
1 changed files with 2 additions and 2 deletions
|
@ -106,13 +106,13 @@ impl Player {
|
|||
}
|
||||
|
||||
// Create pipeline from the description
|
||||
let pipeline = gst::parse_launch(&description.to_string())?;
|
||||
let pipeline = gst::parse_launch(description)?;
|
||||
let pipeline = pipeline.downcast::<gst::Pipeline>();
|
||||
/* start playing */
|
||||
if pipeline.is_err() {
|
||||
GPS_ERROR!("Can not create a proper pipeline from gstreamer parse_launch");
|
||||
return Err(anyhow::anyhow!(
|
||||
"Unable to create a pipeline from the given parse launch {"
|
||||
"Unable to create a pipeline from the given parse launch"
|
||||
));
|
||||
}
|
||||
self.check_for_gtk4sink(pipeline.as_ref().unwrap());
|
||||
|
|
Loading…
Reference in a new issue