summaryrefslogtreecommitdiff
path: root/skinsttng.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-11-15 15:35:21 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-11-15 15:35:21 +0100
commita8cbe3a56df6f2994b3b017e7a372300c88e7ce6 (patch)
tree452174881635f2d154d15e268e700f7415101629 /skinsttng.c
parentdfb9862460bdbc326d03574b79ddefb1d0d8dfd2 (diff)
downloadvdr-a8cbe3a56df6f2994b3b017e7a372300c88e7ce6.tar.gz
vdr-a8cbe3a56df6f2994b3b017e7a372300c88e7ce6.tar.bz2
Simplified some conditional expressions in skinlcars.c and skinsttng.c
Diffstat (limited to 'skinsttng.c')
-rw-r--r--skinsttng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/skinsttng.c b/skinsttng.c
index 39a831a8..7e450fda 100644
--- a/skinsttng.c
+++ b/skinsttng.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinsttng.c 2.17 2013/03/03 15:29:28 kls Exp $
+ * $Id: skinsttng.c 3.1 2013/11/15 15:33:14 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures
@@ -338,7 +338,7 @@ void cSkinSTTNGDisplayChannel::Flush(void)
}
cDevice *Device = cDevice::PrimaryDevice();
const tTrackId *Track = Device->GetTrack(Device->GetCurrentAudioTrack());
- if (!Track && *lastTrackId.description || Track && strcmp(lastTrackId.description, Track->description)) {
+ if (Track ? strcmp(lastTrackId.description, Track->description) : *lastTrackId.description) {
osd->DrawText(x3 + TextFrame, y6, Track ? Track->description : "", Theme.Color(clrChannelName), frameColor, font, x4 - x3 - w - 2 * TextFrame);
strn0cpy(lastTrackId.description, Track ? Track->description : "", sizeof(lastTrackId.description));
}