summaryrefslogtreecommitdiffstats
path: root/app
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 14:09:22 -0800
commita551556be8b780e906eeb89ddc92fb5d0cd58f03 (patch)
tree6823c6a9dcae18175850ea78a8165fc822883978 /app
parent8fe37ce16229c6729958e835c389ac347260388c (diff)
mediaplayer: qml: quiet assignment failure on track.duration
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>
Diffstat (limited to 'app')
-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