diff options
Diffstat (limited to 'audio/sink.c')
-rw-r--r-- | audio/sink.c | 10 |
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; } |