summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2020-02-14 21:34:08 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2020-02-15 22:10:15 +0000
commit23bac76eceec114ad95dd0a1f963641600cdb094 (patch)
tree692cb880d97b4d6df9027ee1d1c2e0fab075f163
parent33dbed88ed54509e39b06f40ac3bd11d86809a9a (diff)
Not all events have duration yet due to gstreamer rolling event maybe delayed. Bug-AGL: SPEC-3140 Change-Id: Ib9443f13acf0c7d93b3bfbb97afa1f60ecbac3e7 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--app/MediaPlayer.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml
index 92e9f39..b287c8a 100644
--- a/app/MediaPlayer.qml
+++ b/app/MediaPlayer.qml
@@ -64,7 +64,9 @@ ApplicationWindow {
player.title = track.title
player.album = track.album
player.artist = track.artist
- player.duration = track.duration
+
+ if ('duration' in track)
+ player.duration = track.duration
if ('index' in track) {
playlistview.currentIndex = track.index