summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 19:24:07 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 19:24:07 +0000
commit871c0518ec53309a38debbb86a36c035c3470fba (patch)
tree823aa033bccb92f76735079312d0e4274b8313e9 /audio/sink.c
parent8ae40e0b0046a011bbc15771f248d7950a606ae4 (diff)
Revert changes from previous commit that were not supposed to go in
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/audio/sink.c b/audio/sink.c
index fd6e9db2..0f69bbf6 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -71,11 +71,9 @@ static void pending_request_free(struct pending_request *pending)
g_free(pending);
}
-static void stream_state_changed(struct avdtp_stream *stream,
- avdtp_state_t old_state,
- avdtp_state_t new_state,
- struct avdtp_error *err,
- void *user_data)
+void stream_state_changed(struct avdtp_stream *stream, avdtp_state_t old_state,
+ avdtp_state_t new_state,
+ struct avdtp_error *err, void *user_data)
{
struct device *dev = user_data;
struct sink *sink = dev->sink;
@@ -317,7 +315,7 @@ gboolean sink_new_stream(struct device *dev, struct avdtp *session,
sink->stream = stream;
sink->initiator = FALSE;
- avdtp_stream_add_cb(session, stream, stream_state_changed, dev);
+ avdtp_stream_set_cb(session, stream, stream_state_changed, dev);
return TRUE;
}