player: Fix Track being emitted with empty metadata
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 15 Feb 2022 20:46:47 +0000 (12:46 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commit24213cac6793b6fec95d429fd7b49876d568ee96
tree0e2c755e935e3df775c72a4462c8decb49a66705
parentbb3bb108605b26570963aba391fa808ca49d594a
player: Fix Track being emitted with empty metadata

This sometimes causes the Track to be schedule while some metadata are
still pending, also don't remove the Duration from track when updating
its metadata since Duration is typically updated by player status rather
than metadata.

Fixes: https://github.com/bluez/bluez/issues/291
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/avrcp.c
profiles/audio/player.c
profiles/audio/player.h