Diff between bea5cc4d12b48edb58c851c7e9ad9640bb7cedee and bcababe6050d043f871703750657332497ff535d

Changed Files

File Additions Deletions Status
profiles/audio/player.c +2 -2 modified

Full Patch

diff --git a/profiles/audio/player.c b/profiles/audio/player.c
index 0f72d76..52844c9 100644
--- a/profiles/audio/player.c
+++ b/profiles/audio/player.c
@@ -1320,9 +1320,9 @@ void media_player_set_duration(struct media_player *mp, uint32_t duration)
 	if (g_hash_table_size(mp->track) == 0)
 		return;
 
-	/* Ignore if duration is already set */
+	/* Ignore if duration is already set to value > 0 */
 	curval = g_hash_table_lookup(mp->track, "Duration");
-	if (curval != NULL)
+	if (curval != NULL && atoi(curval) != 0)
 		return;
 
 	value = g_strdup_printf("%u", duration);