From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> --- profiles/audio/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/audio/player.c b/profiles/audio/player.c index 566fc73..faf497a 100644 --- a/profiles/audio/player.c +++ b/profiles/audio/player.c @@ -814,6 +814,10 @@ void media_player_set_position(struct media_player *mp, uint32_t position) { DBG("%u", position); + /* Only update duration if track exists */ + if (g_hash_table_size(mp->track) == 0) + return; + mp->position = position; g_timer_start(mp->progress); -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html