summaryrefslogtreecommitdiffstats
path: root/audio/manager.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-05-31 11:47:29 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-05-31 11:47:29 +0000
commita359e4becf3b938c5c0bd263d059b5f354f11c7c (patch)
tree64dee97da8243d6dd9bc825d5174012178b40b51 /audio/manager.c
parent522fed0ebe4f32874c265f1a9d71993d922713d9 (diff)
Return error if no audio related services were found in a remote device
Diffstat (limited to 'audio/manager.c')
-rw-r--r--audio/manager.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/audio/manager.c b/audio/manager.c
index 85d52e86..b0e91ee9 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -434,6 +434,14 @@ static void finish_sdp(struct audio_sdp_data *data, gboolean success)
goto done;
}
+ /* Return error if no audio related service records were found */
+ if (!data->records) {
+ debug("No audio audio related service records were found");
+ success = FALSE;
+ err_not_supported(connection, data->msg);
+ success = FALSE;
+ }
+
for (i = 0; i < required_len; i++) {
const char *iface = required[i];