summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorHyuk Lee <hyuk0512.lee@samsung.com>2016-09-09 12:55:46 +0900
committerHyuk Lee <hyuk0512.lee@samsung.com>2016-09-09 17:01:17 +0900
commitcd35ffd79d39e7e86870c054984f05a3e19825a6 (patch)
tree96690f1ae549554550f2d80306d234510281e2ff /profiles
parenta6030ea205362915303ebd25d224e33f909fd5c7 (diff)
downloadbluez-cd35ffd79d39e7e86870c054984f05a3e19825a6.tar.gz
bluez-cd35ffd79d39e7e86870c054984f05a3e19825a6.tar.bz2
bluez-cd35ffd79d39e7e86870c054984f05a3e19825a6.zip
Change-Id: Ic9bf302bdf3af5355979e781c9ef2a3bf1a5e019 Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Diffstat (limited to 'profiles')
-rw-r--r--profiles/audio/a2dp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 47f6be91..1844f331 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -1551,6 +1551,18 @@ static void confirm_cb(GIOChannel *io, gpointer data)
if (!device)
goto drop;
+#ifdef __TIZEN_PATCH__
+{
+ gboolean restricted = FALSE;
+
+ restricted = device_is_profile_restricted(device, A2DP_SINK_UUID);
+ if (restricted) {
+ DBG("A2DP is restricted");
+ goto drop;
+ }
+}
+#endif
+
chan = queue_find(server->channels, match_by_device, device);
if (chan) {
struct a2dp_setup *setup;