Diff between fd3fe4576fc6211f9af59a3540634262ea0f32ff and ab39b46b148e4f2a27cc2aa23efa65aea907e0d0
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/transport.c | +3 | -0 | modified |
Full Patch
diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index a2c4f7d..dd1c553 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -941,6 +941,9 @@ void media_transport_update_volume(struct media_transport *transport,
{
struct a2dp_transport *a2dp = transport->data;
+ if (volume < 0)
+ return;
+
/* Check if volume really changed */
if (a2dp->volume == volume)
return;