Diff between fabd565565539b232051f0d213b7655db1f36117 and fd9dddbfe6c2d7f3728c096ca961742f2e55dcbd
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/player.c | +2 | -1 | modified |
Full Patch
diff --git a/profiles/audio/player.c b/profiles/audio/player.c
index ce5e75b..6150c8a 100644
--- a/profiles/audio/player.c
+++ b/profiles/audio/player.c
@@ -151,7 +151,8 @@ static uint32_t media_player_get_position(struct media_player *mp)
double timedelta;
uint32_t sec, msec;
- if (g_strcmp0(mp->status, "playing") != 0)
+ if (g_strcmp0(mp->status, "playing") != 0 ||
+ mp->position == UINT32_MAX)
return mp->position;
timedelta = g_timer_elapsed(mp->progress, NULL);