OSDN Git Service

audio/player: Fix overflowing position
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 31 Jul 2013 11:27:52 +0000 (14:27 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 31 Jul 2013 11:35:41 +0000 (14:35 +0300)
commitfd9dddbfe6c2d7f3728c096ca961742f2e55dcbd
tree6df18d995cf878c960551373f3207d779e33634d
parentfabd565565539b232051f0d213b7655db1f36117
audio/player: Fix overflowing position

The position should stop at UINT32_MAX after that the progress can no
longer be calculated, this should also prevent the position to change
when the remote stack doesn't support it which is also indicated with
UINT32_MAX which apparently is the case of Spotify on Android 4.3:

[CHG] Player /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/player0 Position: 0xffffffff
[CHG] Player /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/player0 Status: playing
[CHG] Player /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/player0 Position: 0x000000
profiles/audio/player.c