mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
factorize 2 tests
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25860 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ca13485af8
commit
dce8f5aa20
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user