summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_dvdnav.c')
-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;
}