diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-27 00:08:34 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-27 00:08:34 -0500 |
commit | 31d63005e2937f7712a515f56645fe3c34628ca8 (patch) | |
tree | ccc20863a90051a8a9c756419eceabb6f23705b6 | |
parent | a1e8addae51d3f8a026630b47b0c42c11cd52507 (diff) | |
download | ayatana-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()
-rw-r--r-- | src/sound.cpp | 3 |
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); |