[MPlayer-cvslog] r25856 - trunk/stream/stream_dvdnav.c
ben
subversion at mplayerhq.hu
Sat Jan 26 14:07:48 CET 2008
Author: ben
Date: Sat Jan 26 14:07:47 2008
New Revision: 25856
Log:
simplify by a one-liner
Modified:
trunk/stream/stream_dvdnav.c
Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c (original)
+++ trunk/stream/stream_dvdnav.c Sat Jan 26 14:07:47 2008
@@ -806,8 +806,7 @@ int dvdnav_number_of_subs(stream_t *stre
*/
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;
}
/**
More information about the MPlayer-cvslog
mailing list