summaryrefslogtreecommitdiff
path: root/musicagent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'musicagent.cc')
-rw-r--r--musicagent.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/musicagent.cc b/musicagent.cc
index 5d7836a..f67cc1d 100644
--- a/musicagent.cc
+++ b/musicagent.cc
@@ -23,6 +23,7 @@ MusicAgent* MusicAgent::instance()
void MusicAgent::peerFound(SAPPeer *peer)
{
+ Q_UNUSED(peer);
}
void MusicAgent::requestConnection(SAPConnectionRequest *request)
@@ -40,12 +41,12 @@ void MusicAgent::registerServices(SAPManager *manager)
service.setProfile(music_profile);
service.setFriendlyName("Media controller");
- service.setRole(SAPServiceInfo::RoleConsumer);
+ service.setRole(SAPServiceInfo::RoleProvider);
service.setVersion(1, 0);
service.setConnectionTimeout(0);
channel.setChannelId(100);
- channel.setPayloadType(SAPChannelInfo::PayloadJson);
+ channel.setPayloadType(SAPChannelInfo::PayloadNone);
channel.setQoSType(SAPChannelInfo::QoSReliabilityDisable);
channel.setQoSDataRate(SAPChannelInfo::QoSDataRateLow);
channel.setQoSPriority(SAPChannelInfo::QoSPriorityLow);