aboutsummaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-27 00:08:34 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-27 00:08:34 -0500
commit31d63005e2937f7712a515f56645fe3c34628ca8 (patch)
treeccc20863a90051a8a9c756419eceabb6f23705b6 /src/sound.cpp
parenta1e8addae51d3f8a026630b47b0c42c11cd52507 (diff)
downloadayatana-indicator-datetime-31d63005e2937f7712a515f56645fe3c34628ca8.tar.gz
ayatana-indicator-datetime-31d63005e2937f7712a515f56645fe3c34628ca8.tar.bz2
ayatana-indicator-datetime-31d63005e2937f7712a515f56645fe3c34628ca8.zip
in sound.cpp, check the return value of gst_init_check()
Diffstat (limited to 'src/sound.cpp')
-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);