summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-06 00:48:06 +0100
committerJokler <jokler@protonmail.com>2020-01-06 00:48:06 +0100
commit75decc7c0ad163bb8ff9bc2fb62b2da33610c655 (patch)
tree7d8a57ae6c5efe03e604b514ff6561601367ad61
parent1b2a791b5a01155a8f5f87f0d9dd066ab9ff9c44 (diff)
downloadpokebot-75decc7c0ad163bb8ff9bc2fb62b2da33610c655.tar.gz
pokebot-75decc7c0ad163bb8ff9bc2fb62b2da33610c655.zip
Fix volume command
-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);
}