summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 19:14:31 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 19:14:31 +0000
commit8ae40e0b0046a011bbc15771f248d7950a606ae4 (patch)
treeb90cd418ac5ba1174ada72a2c2db8136240f6732 /audio/sink.c
parentbf48e6cc1e92a136070f70d880c17d221f410175 (diff)
Fix minumum bitpool calculation
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/audio/sink.c b/audio/sink.c
index 0f69bbf6..fd6e9db2 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -71,9 +71,11 @@ static void pending_request_free(struct pending_request *pending)
g_free(pending);
}
-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)
+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)
{
struct device *dev = user_data;
struct sink *sink = dev->sink;
@@ -315,7 +317,7 @@ gboolean sink_new_stream(struct device *dev, struct avdtp *session,
sink->stream = stream;
sink->initiator = FALSE;
- avdtp_stream_set_cb(session, stream, stream_state_changed, dev);
+ avdtp_stream_add_cb(session, stream, stream_state_changed, dev);
return TRUE;
}