diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2020-02-14 21:34:08 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2020-02-15 14:09:22 -0800 |
commit | a551556be8b780e906eeb89ddc92fb5d0cd58f03 (patch) | |
tree | 6823c6a9dcae18175850ea78a8165fc822883978 /app/MediaPlayer.qml | |
parent | 8fe37ce16229c6729958e835c389ac347260388c (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/MediaPlayer.qml')
-rw-r--r-- | app/MediaPlayer.qml | 4 |
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 |