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:04:06 -0800 |
commit | ddb3a5339e127d9e1b7358c907c338ae9b729234 (patch) | |
tree | 548054504ce89dc07fed78b03f306d6edab5ea77 | |
parent | 4e95b1ef651e9515c1fb6ced17e937cc20d6d6f4 (diff) |
mediaplayer: qml: quiet assignment failure on track.durationhalibut_8.0.6halibut/8.0.68.0.6halibut
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.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index f6beafd..3fc66d8 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 |