From c9b307de5af37a56e7327f6467dc7624e68e4d16 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Thu, 18 Aug 2011 14:57:09 +0530 Subject: [PATCH] Check if PA_SINK_SET_FORMATS is defined before using it --- src/mainwindow.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cc b/src/mainwindow.cc index a41dc99..71b4d20 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -348,7 +348,9 @@ bool MainWindow::updateSink(const pa_sink_info &info) { w->activePort = info.active_port ? info.active_port->name : ""; +#ifdef PA_SINK_SET_FORMATS w->setDigital(info.flags & PA_SINK_SET_FORMATS); +#endif w->updating = false;