Changeset fa60cd69 in mainline for uspace/srv/audio/hound/audio_client.c
- Timestamp:
- 2013-04-02T19:06:27Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 35ab943
- Parents:
- 39c4d1f
- File:
-
- 1 edited
-
uspace/srv/audio/hound/audio_client.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/audio_client.c
r39c4d1f rfa60cd69 55 55 56 56 static int client_sink_connection_change(audio_sink_t *sink, bool new); 57 static int client_source_connection_change(audio_source_t *source );57 static int client_source_connection_change(audio_source_t *source, bool new); 58 58 static int client_source_update_data(audio_source_t *source, size_t size); 59 59 … … 111 111 } 112 112 113 static int client_source_connection_change(audio_source_t *source )113 static int client_source_connection_change(audio_source_t *source, bool new) 114 114 { 115 115 assert(source); 116 116 audio_client_t *client = source->private_data; 117 if (source->connected_sink) { 117 if (new && list_count(&source->connections) == 1) { 118 assert(!client->exch); 118 119 client->exch = async_exchange_begin(client->sess); 119 120 return client->exch ? EOK : ENOMEM; 120 121 } 121 async_exchange_end(client->exch); 122 client->exch = NULL; 122 if (list_count(&source->connections) == 0) { 123 assert(!new); 124 async_exchange_end(client->exch); 125 client->exch = NULL; 126 } 123 127 return EOK; 124 128 }
Note:
See TracChangeset
for help on using the changeset viewer.
