X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/3fbdc96d45fbf2abcc93ed2e8ad206bc540be92b..05b75f8d50b83e943af3be4071449304d82dbdcd:/disobedience/disobedience.c?ds=sidebyside diff --git a/disobedience/disobedience.c b/disobedience/disobedience.c index 42eb190..d6aa599 100644 --- a/disobedience/disobedience.c +++ b/disobedience/disobedience.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2006, 2007 Richard Kettlewell + * Copyright (C) 2006, 2007, 2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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();