[MPlayer-cvslog] r25860 - trunk/stream/stream_dvdnav.c

ben subversion at mplayerhq.hu
Sat Jan 26 17:19:42 CET 2008


Author: ben
Date: Sat Jan 26 17:19:42 2008
New Revision: 25860

Log:
factorize 2 tests

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 17:19:42 2008
@@ -904,9 +904,10 @@ int mp_dvdnav_cell_has_changed (stream_t
   dvdnav_priv_t *priv = stream->priv;
   if (!(priv->state & NAV_FLAG_CELL_CHANGED))
     return 0;
-  if (clear)
+  if (clear) {
     priv->state &= ~NAV_FLAG_CELL_CHANGED;
-  if (clear) priv->state |= NAV_FLAG_STREAM_CHANGE;
+    priv->state |= NAV_FLAG_STREAM_CHANGE;
+  }
   return 1;
 }
 



More information about the MPlayer-cvslog mailing list