remove volume, mute, pause watches
these shouldn't even change from the mpv side anyways
This commit is contained in:
parent
9599ee669d
commit
a0be95189b
1 changed files with 0 additions and 18 deletions
|
@ -83,9 +83,6 @@ mod imp {
|
||||||
mpv.set_property("vid", false).unwrap();
|
mpv.set_property("vid", false).unwrap();
|
||||||
mpv.set_property("prefetch-playlist", true).unwrap();
|
mpv.set_property("prefetch-playlist", true).unwrap();
|
||||||
|
|
||||||
mpv.observe_property(0, "volume").unwrap();
|
|
||||||
mpv.observe_property(1, "mute").unwrap();
|
|
||||||
mpv.observe_property(2, "pause").unwrap();
|
|
||||||
mpv.observe_property(3, "playlist-pos").unwrap();
|
mpv.observe_property(3, "playlist-pos").unwrap();
|
||||||
mpv.observe_property(4, "idle-active").unwrap();
|
mpv.observe_property(4, "idle-active").unwrap();
|
||||||
mpv.observe_property(6, "playlist-count").unwrap();
|
mpv.observe_property(6, "playlist-count").unwrap();
|
||||||
|
@ -420,21 +417,6 @@ mod imp {
|
||||||
|
|
||||||
fn on_property_change(&self, event: crate::mpv::event::PropertyEvent) {
|
fn on_property_change(&self, event: crate::mpv::event::PropertyEvent) {
|
||||||
match event.reply_userdata {
|
match event.reply_userdata {
|
||||||
0 => {
|
|
||||||
assert_eq!(event.name, "volume");
|
|
||||||
self.obj().notify("volume");
|
|
||||||
}
|
|
||||||
|
|
||||||
1 => {
|
|
||||||
assert_eq!(event.name, "mute");
|
|
||||||
self.obj().notify("mute");
|
|
||||||
}
|
|
||||||
|
|
||||||
2 => {
|
|
||||||
assert_eq!(event.name, "pause");
|
|
||||||
self.obj().notify("pause");
|
|
||||||
}
|
|
||||||
|
|
||||||
3 => {
|
3 => {
|
||||||
assert_eq!(event.name, "playlist-pos");
|
assert_eq!(event.name, "playlist-pos");
|
||||||
self.obj().notify("playlist-pos");
|
self.obj().notify("playlist-pos");
|
||||||
|
|
Loading…
Reference in a new issue