Commit: f58d61e7fdfc2c60aa3054d4a9467aa5e2627650
Parent: 853bd60568b82afdc84430b0740817cdad7419c2
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-03-18 11:40:19
Tree: c137b3302aa3bffb026ee8fbca71846dbfd4243f

audio/avrcp: Fix crash when acting as TG When acting as TG the code may end up using GetCapabilities to figure out if volume changed event is supported, this cause crashes with remote devices that don't support TG themselves because session->controller is not initialized. Note that to pass AVRCP qualification when volume changed is supported the device has to support TG as well as CT record, this is because PTS will attempt to fetch the TG record for any test that it is sending commands so devices where this crash happen most likely don't have volume control feature enabled.

Diffstat

M profiles/audio/avrcp.c | 6 ++++++

1 files changed, 6 insertions(+), 0 deletions(-)

View Full Diff | Patch