1
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 04:36:24 +01:00

simplify by a one-liner

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25856 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2008-01-26 13:07:47 +00:00
parent ef8e584e39
commit 8a9021fc6d

View File

@ -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;
}
/**