exclude C source files from non-darwin targets
This commit is contained in:
@@ -235,11 +235,13 @@ func (a *App) setupMPRIS(mprisAppName string) {
|
|||||||
|
|
||||||
func (a *App) setupMPMedia() {
|
func (a *App) setupMPMedia() {
|
||||||
a.MPMediaHandler = NewMPMediaHandler(a.Player, a.PlaybackManager)
|
a.MPMediaHandler = NewMPMediaHandler(a.Player, a.PlaybackManager)
|
||||||
|
if a.MPMediaHandler != nil {
|
||||||
a.MPMediaHandler.ArtURLLookup = func(coverID string) (string, error) {
|
a.MPMediaHandler.ArtURLLookup = func(coverID string) (string, error) {
|
||||||
// artwork needs to be in cache before playback, so cover is retrieved in advance.
|
// artwork needs to be in cache before playback, so cover is retrieved in advance.
|
||||||
a.ImageManager.GetCoverThumbnail(coverID)
|
a.ImageManager.GetCoverThumbnail(coverID)
|
||||||
return a.ImageManager.GetCoverArtUrl(coverID)
|
return a.ImageManager.GetCoverArtUrl(coverID)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *App) LoginToDefaultServer(string) error {
|
func (a *App) LoginToDefaultServer(string) error {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build darwin
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* mpmediabridge.h
|
* mpmediabridge.h
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//go:build darwin
|
||||||
|
|
||||||
#import "mpmediabridge.h"
|
#import "mpmediabridge.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user