summaryrefslogtreecommitdiff
path: root/src/spu_dec
diff options
context:
space:
mode:
Diffstat (limited to 'src/spu_dec')
-rw-r--r--src/spu_dec/cc_decoder.c9
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;
}