summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvdnav.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index 4397d3b42b..71ac85a0f6 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -806,8 +806,7 @@ int dvdnav_number_of_subs(stream_t *stream) {
*/
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;
}
/**