chiark / gitweb /
Source code reorganization:
[disorder] / disobedience / disobedience.c
index 2cab9aa9cd0d3bc1418068ef83ddb666e531d104..d6aa59976c602fd206dd968a7d396e4dc1b35a2d 100644 (file)
@@ -312,9 +312,10 @@ static gboolean periodic_fast(gpointer attribute((unused)) data) {
   }
   last = now;
 #endif
-  if(rtp_supported) {
+  if(rtp_supported && mixer_supported(DEFAULT_BACKEND)) {
     int nl, nr;
-    if(!mixer_control(&nl, &nr, 0) && (nl != volume_l || nr != volume_r)) {
+    if(!mixer_control(DEFAULT_BACKEND, &nl, &nr, 0)
+       && (nl != volume_l || nr != volume_r)) {
       volume_l = nl;
       volume_r = nr;
       volume_update();