Mercurial > mplayer.hg
comparison stream/stream_dvdnav.c @ 25832:8601206c2ffc
factorize 2 tests
author | ben |
---|---|
date | Sat, 26 Jan 2008 16:19:42 +0000 |
parents | 32acf35f74e1 |
children | eff9e1b25743 |
comparison
equal
deleted
inserted
replaced
25831:9463ef1a0e63 | 25832:8601206c2ffc |
---|---|
902 */ | 902 */ |
903 int mp_dvdnav_cell_has_changed (stream_t *stream, int clear) { | 903 int mp_dvdnav_cell_has_changed (stream_t *stream, int clear) { |
904 dvdnav_priv_t *priv = stream->priv; | 904 dvdnav_priv_t *priv = stream->priv; |
905 if (!(priv->state & NAV_FLAG_CELL_CHANGED)) | 905 if (!(priv->state & NAV_FLAG_CELL_CHANGED)) |
906 return 0; | 906 return 0; |
907 if (clear) | 907 if (clear) { |
908 priv->state &= ~NAV_FLAG_CELL_CHANGED; | 908 priv->state &= ~NAV_FLAG_CELL_CHANGED; |
909 if (clear) priv->state |= NAV_FLAG_STREAM_CHANGE; | 909 priv->state |= NAV_FLAG_STREAM_CHANGE; |
910 } | |
910 return 1; | 911 return 1; |
911 } | 912 } |
912 | 913 |
913 /* Notify if something has changed in stream | 914 /* Notify if something has changed in stream |
914 * Can be related to title, chapter, audio or SPU | 915 * Can be related to title, chapter, audio or SPU |