From edb57e1b924e46579c0f9e92e277c85dacec8235 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Mon, 20 Aug 2012 10:28:29 +0100 Subject: [PATCH] Add a constructor to DBusStatus to fix a build failure in release mode. --- src/core/mpris1.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/mpris1.h b/src/core/mpris1.h index 189b83a86..9e344b69e 100644 --- a/src/core/mpris1.h +++ b/src/core/mpris1.h @@ -28,6 +28,13 @@ class Application; class Playlist; struct DBusStatus { // From Amarok. + DBusStatus() + : play(Mpris_Stopped), + random(0), + repeat(0), + repeat_playlist(0) + {} + int play; // Playing = 0, Paused = 1, Stopped = 2 int random; // Linearly = 0, Randomly = 1 int repeat; // Go_To_Next = 0, Repeat_Current = 1