From 08611f9b6aa533a0c7fd44df9ecdc77b8b361ed7 Mon Sep 17 00:00:00 2001 From: psykose Date: Sat, 19 Oct 2024 05:09:24 +0200 Subject: [PATCH] mini style --- src/playbin.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/playbin.vala b/src/playbin.vala index 34494f9..1dec26b 100644 --- a/src/playbin.vala +++ b/src/playbin.vala @@ -172,21 +172,21 @@ class Playbin : GLib.Object { public void pause () { assert (this.state != PlaybinState.STOPPED); 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 var ret = this.mpv.set_property_flag("pause", true); 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 () { assert (this.state != PlaybinState.STOPPED); this.state = PlaybinState.PLAYING; - GLib.debug ("setting state to playing"); + debug ("setting state to playing"); var ret = this.mpv.set_property_flag("pause", false); 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())"); } }