OSDN Git Service

auto import from //branches/cupcake/...@137873
authorThe Android Open Source Project <initial-contribution@android.com>
Wed, 11 Mar 2009 19:11:54 +0000 (12:11 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Wed, 11 Mar 2009 19:11:54 +0000 (12:11 -0700)
utils/audio/sink.c

index dee0272..d25a91a 100644 (file)
@@ -170,7 +170,7 @@ static void stream_setup_complete(struct avdtp *session, struct a2dp_sep *sep,
 
        pending = sink->connect;
 
-       if (stream) {
+       if (stream && !err) {
                debug("Stream successfully created");
 
                if (pending->msg) {