aboutsummaryrefslogtreecommitdiff
path: root/src/snap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 9c2b4b6..72d68a2 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -227,6 +227,10 @@ private:
std::string uri;
+ // does not play any sound if alarm is not set as sound
+ if (!is_alarm && !(alarm.type & Alarm::SOUND))
+ return uri;
+
for(const auto& candidate : candidates)
{
if (gst_uri_is_valid (candidate.c_str()))