diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-23 00:16:44 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-23 00:16:44 +0100 |
commit | 5cffb796e9a414e8effddb5f9f097c10d0b3f53f (patch) | |
tree | cd4f2656390af7611311e284e1cc3c9c7f2423fc /src | |
parent | ed720ed77a1f9e7e5ed12acc950f26dc5c9fc573 (diff) | |
download | xine-lib-5cffb796e9a414e8effddb5f9f097c10d0b3f53f.tar.gz xine-lib-5cffb796e9a414e8effddb5f9f097c10d0b3f53f.tar.bz2 |
Simplify code by returning immediately if the condition is not met.
Diffstat (limited to 'src')
-rw-r--r-- | src/spu_dec/cc_decoder.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/spu_dec/cc_decoder.c b/src/spu_dec/cc_decoder.c index 748cd7232..49538ca66 100644 --- a/src/spu_dec/cc_decoder.c +++ b/src/spu_dec/cc_decoder.c @@ -896,11 +896,11 @@ static int cc_renderer_on_display(cc_renderer_t *this) static void cc_renderer_hide_caption(cc_renderer_t *this, int64_t vpts) { - if (this->displayed) { - this->osd_renderer->hide(this->cap_display, vpts); - this->displayed = 0; - this->last_hide_vpts = vpts; - } + if ( ! this->displayed ) return; + + this->osd_renderer->hide(this->cap_display, vpts); + this->displayed = 0; + this->last_hide_vpts = vpts; } |