changeset 25832:8601206c2ffc

factorize 2 tests
author ben
date Sat, 26 Jan 2008 16:19:42 +0000
parents 9463ef1a0e63
children ed27d1c01f93
files stream/stream_dvdnav.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Sat Jan 26 16:18:58 2008 +0000
+++ b/stream/stream_dvdnav.c	Sat Jan 26 16:19:42 2008 +0000
@@ -904,9 +904,10 @@
   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;
 }