From 1b304d9070bff769e51bf2e3e4727121244e96a5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 18 Oct 2015 16:04:57 +0300 Subject: [PATCH] Display the various bits of info only if they are available --- remote/qml/pages/PlaybackPage.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/remote/qml/pages/PlaybackPage.qml b/remote/qml/pages/PlaybackPage.qml index daa48df..9bca145 100644 --- a/remote/qml/pages/PlaybackPage.qml +++ b/remote/qml/pages/PlaybackPage.qml @@ -37,16 +37,21 @@ Page StreamInfo { - text: streamControl.videoSize.width+"×"+streamControl.videoSize.height+" @ "+streamControl.framerate.toFixed(2)+"fps" + visible: streamControl.videoSize.width && streamControl.videoSize.height + property string size: streamControl.videoSize.width+"×"+streamControl.videoSize.height + property string fps: " @ "+streamControl.framerate.toFixed(2)+"fps" + text: (streamControl.framerate ? size+fps : size) } StreamInfo { + visible: streamControl.videoCodec text: streamControl.videoCodec } StreamInfo { + visible: streamControl.audioCodec text: streamControl.audioCodec } } -- 2.45.2