diff --git a/src/context/contextalbumsview.cpp b/src/context/contextalbumsview.cpp index 823915aba..857eca67a 100644 --- a/src/context/contextalbumsview.cpp +++ b/src/context/contextalbumsview.cpp @@ -405,7 +405,9 @@ void ContextAlbumsView::contextMenuEvent(QContextMenuEvent *e) { // TODO: check if custom plugin actions should be enabled / visible const int songs_selected = regular_elements; +#ifdef HAVE_GSTREAMER const bool regular_elements_only = songs_selected == regular_elements && regular_elements > 0; +#endif // in all modes load_->setEnabled(songs_selected); diff --git a/src/device/deviceproperties.cpp b/src/device/deviceproperties.cpp index 9d600877b..0087f3b66 100644 --- a/src/device/deviceproperties.cpp +++ b/src/device/deviceproperties.cpp @@ -57,7 +57,9 @@ #include "devicelister.h" #include "devicemanager.h" #include "deviceproperties.h" -#include "transcoder/transcoder.h" +#ifdef HAVE_GSTREAMER +# include "transcoder/transcoder.h" +#endif #include "ui_deviceproperties.h" DeviceProperties::DeviceProperties(QWidget *parent)