summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-26 16:19:42 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-26 16:19:42 +0000
commitdce8f5aa2023bd8353ee88f1769323778afad8e1 (patch)
treecee06ed95d8c18b4c56af00c05c7c547c186654c /stream
parentca13485af8f69668db19c59965ade6b0801107ee (diff)
downloadmpv-dce8f5aa2023bd8353ee88f1769323778afad8e1.tar.bz2
mpv-dce8f5aa2023bd8353ee88f1769323778afad8e1.tar.xz
factorize 2 tests
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25860 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvdnav.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index 76d5ade3df..4ee9eef40a 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -904,9 +904,10 @@ int mp_dvdnav_cell_has_changed (stream_t *stream, int clear) {
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;
}