Check if PA_SINK_SET_FORMATS is defined before using it

This commit is contained in:
Arun Raghavan 2011-08-18 14:57:09 +05:30
parent 5c19f6b5d2
commit c9b307de5a
1 changed files with 2 additions and 0 deletions

View File

@ -348,7 +348,9 @@ bool MainWindow::updateSink(const pa_sink_info &info) {
w->activePort = info.active_port ? info.active_port->name : ""; w->activePort = info.active_port ? info.active_port->name : "";
#ifdef PA_SINK_SET_FORMATS
w->setDigital(info.flags & PA_SINK_SET_FORMATS); w->setDigital(info.flags & PA_SINK_SET_FORMATS);
#endif
w->updating = false; w->updating = false;