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 22:10:15 +0000 |
commit | 23bac76eceec114ad95dd0a1f963641600cdb094 (patch) | |
tree | 692cb880d97b4d6df9027ee1d1c2e0fab075f163 | |
parent | 33dbed88ed54509e39b06f40ac3bd11d86809a9a (diff) |
mediaplayer: qml: quiet assignment failure on track.durationicefish_9.0.4icefish_9.0.3icefish_9.0.2icefish_9.0.1icefish_9.0.0icefish/9.0.4icefish/9.0.3icefish/9.0.2icefish/9.0.1icefish/9.0.09.0.49.0.39.0.29.0.19.0.0icefish
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 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 |