changeset 25828:8a1627f693a6

simplify by a one-liner
author ben
date Sat, 26 Jan 2008 13:07:47 +0000
parents 3fc9f549b5d0
children c0b5ff39e928
files stream/stream_dvdnav.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Sat Jan 26 13:06:42 2008 +0000
+++ b/stream/stream_dvdnav.c	Sat Jan 26 13:07:47 2008 +0000
@@ -806,8 +806,7 @@
  */
 unsigned int *mp_dvdnav_get_spu_clut(stream_t *stream) {
     dvdnav_priv_t *priv=(dvdnav_priv_t*)stream->priv;
-    if (!(priv->state & NAV_FLAG_SPU_SET)) return NULL;
-    return priv->spu_clut;
+    return (priv->state & NAV_FLAG_SPU_SET) ? priv->spu_clut : NULL;
 }
 
 /**