aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sound.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index bf2284e..052b168 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -49,8 +49,7 @@ public:
static std::once_flag once;
std::call_once(once, [](){
GError* error = nullptr;
- gst_init_check (nullptr, nullptr, &error);
- if (error)
+ if (!gst_init_check (nullptr, nullptr, &error))
{
g_critical("Unable to play alarm sound: %s", error->message);
g_error_free(error);