factorize 2 tests

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25860 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2008-01-26 16:19:42 +00:00
parent ca13485af8
commit dce8f5aa20
1 changed files with 3 additions and 2 deletions

View File

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