AVRCP: fix missing bytes on notification

This commit is contained in:
Lucas De Marchi 2011-09-29 14:07:29 -03:00 committed by Johan Hedberg
parent d9ae5bead2
commit 4d3bb39485

View File

@ -591,7 +591,7 @@ static int avrcp_send_event(struct media_player *mp, uint8_t id, void *data)
err = avctp_send_vendordep(mp->session, mp->transaction_events[id],
AVC_CTYPE_CHANGED, AVC_SUBUNIT_PANEL,
buf, size);
buf, size + AVRCP_HEADER_LENGTH);
if (err < 0)
return err;