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 14:04:06 -0800
commitddb3a5339e127d9e1b7358c907c338ae9b729234 (patch)
tree548054504ce89dc07fed78b03f306d6edab5ea77
parent4e95b1ef651e9515c1fb6ced17e937cc20d6d6f4 (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.qml4
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