mini style
This commit is contained in:
parent
8bf0e13ba9
commit
08611f9b6a
1 changed files with 4 additions and 4 deletions
|
@ -172,21 +172,21 @@ class Playbin : GLib.Object {
|
||||||
public void pause () {
|
public void pause () {
|
||||||
assert (this.state != PlaybinState.STOPPED);
|
assert (this.state != PlaybinState.STOPPED);
|
||||||
this.state = PlaybinState.PAUSED;
|
this.state = PlaybinState.PAUSED;
|
||||||
GLib.debug ("setting state to paused");
|
debug ("setting state to paused");
|
||||||
// TODO: abstract away this handling around mpv api a bit for auto debug printing
|
// TODO: abstract away this handling around mpv api a bit for auto debug printing
|
||||||
var ret = this.mpv.set_property_flag("pause", true);
|
var ret = this.mpv.set_property_flag("pause", true);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
GLib.debug ("failed to set state to paused (%d): %s", ret, ret.to_string());
|
debug (@"failed to set state to paused ($(ret)): $(ret.to_string())");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void play () {
|
public void play () {
|
||||||
assert (this.state != PlaybinState.STOPPED);
|
assert (this.state != PlaybinState.STOPPED);
|
||||||
this.state = PlaybinState.PLAYING;
|
this.state = PlaybinState.PLAYING;
|
||||||
GLib.debug ("setting state to playing");
|
debug ("setting state to playing");
|
||||||
var ret = this.mpv.set_property_flag("pause", false);
|
var ret = this.mpv.set_property_flag("pause", false);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
GLib.debug ("failed to set state to playing (%d): %s", ret, ret.to_string());
|
debug (@"failed to set state to playing ($(ret)): $(ret.to_string())");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue