From 9022e5363d630a44334ff9c0c190b8c6f43b57a5 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 26 Feb 2013 14:33:42 +0200 Subject: [PATCH] player: Only emit PropertiesChanged for Position if track exists --- profiles/audio/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/audio/player.c b/profiles/audio/player.c index 82b579f74..b77c34911 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); -- 2.47.3