Skip to content

Commit

Permalink
fix build issues with background streams
Browse files Browse the repository at this point in the history
  • Loading branch information
xif-fr committed Nov 27, 2021
1 parent 9e345c5 commit bbc5f94
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions include/clementine-config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#cmakedefine HAVE_OPENGL
#cmakedefine HAVE_TRANSLATIONS
#cmakedefine HAVE_SPOTIFY
#cmakedefine HAVE_BACKGROUND_STREAMS
#cmakedefine TAGLIB_HAS_OPUS
#cmakedefine USE_INSTALL_PREFIX
#cmakedefine USE_SYSTEM_PROJECTM
Expand Down
6 changes: 3 additions & 3 deletions src/engines/gstengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const char* GstEngine::kHypnotoadPipeline =
const char* GstEngine::kEnterprisePipeline =
"audiotestsrc wave=5 ! "
"audiocheblimit mode=0 cutoff=120";
#endif
#endif // HAVE_BACKGROUND_STREAMS

GstEngine::GstEngine(Application* app)
: Engine::Base(),
Expand Down Expand Up @@ -865,7 +865,7 @@ shared_ptr<GstEnginePipeline> GstEngine::CreatePipeline(
ret.reset();
}
} else
#endif
#endif // HAVE_BACKGROUND_STREAMS
{
if (!ret->InitFromReq(req, end_nanosec)) ret.reset();
}
Expand Down Expand Up @@ -938,7 +938,7 @@ void GstEngine::SetBackgroundStreamVolume(int id, int volume) {
pipeline->SetVolume(volume);
}

#endif
#endif // HAVE_BACKGROUND_STREAMS

void GstEngine::BufferingStarted() {
if (buffering_task_id_ != -1) {
Expand Down
1 change: 1 addition & 0 deletions src/engines/gstengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <QTimerEvent>
#include <memory>

#include "config.h"
#include "bufferconsumer.h"
#include "core/timeconstants.h"
#include "enginebase.h"
Expand Down
8 changes: 4 additions & 4 deletions src/ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ MainWindow::MainWindow(Application* app, SystemTrayIcon* tray_icon, OSD* osd,
IconLoader::Load("weather-showers-scattered", IconLoader::Base));
ui_->action_hypnotoad->setIcon(
IconLoader::Load("hypnotoad", IconLoader::Base));
ui_->action_kittens->setIcon(IconLoader::Load("kittens", IconLoader::Base));
#endif
ui_->action_enterprise->setIcon(
IconLoader::Load("enterprise", IconLoader::Base));
IconLoader::Load("enterprise", IconLoader::Base));
#endif
ui_->action_kittens->setIcon(IconLoader::Load("kittens", IconLoader::Base));
ui_->action_love->setIcon(IconLoader::Load("love", IconLoader::Lastfm));

// File view connections
Expand Down Expand Up @@ -509,7 +509,7 @@ MainWindow::MainWindow(Application* app, SystemTrayIcon* tray_icon, OSD* osd,
ui_->action_rain->setVisible(false);
ui_->action_hypnotoad->setVisible(false);
ui_->action_enterprise->setVisible(false);
#endif
#endif // HAVE_BACKGROUND_STREAMS

// Playlist view actions
ui_->action_next_playlist->setShortcuts(
Expand Down
6 changes: 3 additions & 3 deletions src/widgets/nowplayingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ NowPlayingWidget::NowPlayingWidget(QWidget* parent)
menu_->addAction(tr("ALL GLORY TO THE HYPNOTOAD"));
bask_in_his_glory_action_->setVisible(false);
connect(bask_in_his_glory_action_, SIGNAL(triggered()), SLOT(Bask()));
#endif
#endif // HAVE_BACKGROUND_STREAMS

// Animations
connect(show_hide_animation_, SIGNAL(frameChanged(int)),
Expand Down Expand Up @@ -631,7 +631,7 @@ void NowPlayingWidget::AllHail(bool hypnotoad) {
}
}

#endif
#endif // HAVE_BACKGROUND_STREAMS

void NowPlayingWidget::EnableKittens(bool aww) {
if (!kittens_ && aww) {
Expand Down Expand Up @@ -696,7 +696,7 @@ void NowPlayingWidget::Bask() {
big_hypnotoad_->showFullScreen();
}

#endif
#endif // HAVE_BACKGROUND_STREAMS

void NowPlayingWidget::dragEnterEvent(QDragEnterEvent* e) {
if (AlbumCoverChoiceController::CanAcceptDrag(e)) {
Expand Down

0 comments on commit bbc5f94

Please sign in to comment.