summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/state.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.rs b/src/state.rs
index a1c0d6a..6f50c75 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -182,7 +182,7 @@ impl State {
self.pipeline
.set_state(gst::State::Ready)
- .expect("Can set state to null");
+ .expect("Can set state to ready");
let http_src = self
.pipeline
@@ -233,9 +233,9 @@ impl State {
self.pipeline
.set_state(gst::State::Paused)
.expect("Can set state to null");
- let http_src = self
+ self
.pipeline
- .get_by_name("http-source")
+ .get_by_name("volume")
.expect("Http source should be registered")
.set_property("volume", &volume);
}