From: Mikko Rasa Date: Sun, 18 Oct 2015 13:04:57 +0000 (+0300) Subject: Display the various bits of info only if they are available X-Git-Url: http://git.tdb.fi/?p=xinema.git;a=commitdiff_plain;h=1b304d9070bff769e51bf2e3e4727121244e96a5 Display the various bits of info only if they are available --- 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 } }