Diff between bd7644ed29575fca22424c515e8adaad872ac1b2 and dbe02b8c008b5511e6e3fa6c7246b2cf1faf3455
Changed Files
| File | Additions | Deletions | Status |
| audio/media.c | +3 | -5 | modified |
Full Patch
diff --git a/audio/media.c b/audio/media.c
index cb8872f..2a2cf37 100644
--- a/audio/media.c
+++ b/audio/media.c
@@ -1357,16 +1357,14 @@ static void set_volume(uint8_t volume, struct audio_device *dev, void *user_data
mp->volume = volume;
for (l = mp->adapter->endpoints; l; l = l->next) {
-
- struct media_endpoint *endpoint;
+ struct media_endpoint *endpoint = l->data;
struct media_transport *transport;
- if (l->data == NULL)
+ /* Volume is A2DP only */
+ if (endpoint->sep == NULL)
continue;
- endpoint = l->data;
transport = find_device_transport(endpoint, dev);
-
if (transport == NULL)
continue;