OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7d8688
)
Automated import from //branches/cupcake/...@141694,141694
author
Nick Pelly
<>
Wed, 25 Mar 2009 01:11:41 +0000
(18:11 -0700)
committer
The Android Open Source Project
<initial-contribution@android.com>
Wed, 25 Mar 2009 01:11:41 +0000
(18:11 -0700)
utils/audio/sink.c
patch
|
blob
|
history
diff --git
a/utils/audio/sink.c
b/utils/audio/sink.c
index
f95d23a
..
424232b
100644
(file)
--- a/
utils/audio/sink.c
+++ b/
utils/audio/sink.c
@@
-406,8
+406,10
@@
gboolean sink_setup_stream(struct sink *sink, struct avdtp *session,
sink->session = avdtp_ref(session);
pending = g_new0(struct pending_request, 1);
- pending->conn = dbus_connection_ref(conn);
- pending->msg = dbus_message_ref(msg);
+ if (conn && msg) {
+ pending->conn = dbus_connection_ref(conn);
+ pending->msg = dbus_message_ref(msg);
+ }
sink->connect = pending;
if (avdtp_discover(sink->session, discovery_complete, sink) < 0) {