diff options
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; } |