diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-23 00:13:15 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-23 00:13:15 +0100 |
commit | ed720ed77a1f9e7e5ed12acc950f26dc5c9fc573 (patch) | |
tree | 93af97676cce2560f9a4bde80a160c1b30a61b3d | |
parent | a6280e7409c658228b15e12ee41af297482e543a (diff) | |
download | xine-lib-ed720ed77a1f9e7e5ed12acc950f26dc5c9fc573.tar.gz xine-lib-ed720ed77a1f9e7e5ed12acc950f26dc5c9fc573.tar.bz2 |
Return immediately if some text is found.
-rw-r--r-- | src/spu_dec/cc_decoder.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/spu_dec/cc_decoder.c b/src/spu_dec/cc_decoder.c index 96da03150..748cd7232 100644 --- a/src/spu_dec/cc_decoder.c +++ b/src/spu_dec/cc_decoder.c @@ -700,12 +700,11 @@ static void ccrow_render(cc_renderer_t *renderer, cc_row_t *this, int rownum) static int ccbuf_has_displayable(cc_buffer_t *this) { int i; - int found = 0; - for (i = 0; !found && i < CC_ROWS; i++) { + for (i = 0; i < CC_ROWS; i++) if (this->rows[i].num_chars > 0) - found = 1; - } - return found; + return 1; + + return 0; } |