diff options
author | wm4 <wm4@nowhere> | 2016-02-12 15:58:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-12 15:58:48 +0100 |
commit | 028773611949186865ea6977eca9493b2fc57853 (patch) | |
tree | 095815888fed1fa340062d03cab919fc86a47410 /sub | |
parent | fd80fcd3f34482d9b9b5cc46c90cb2e52bccfc14 (diff) |
sub: remove always-true check
Confuses Coverity with FORWARD_NULL on the mp_err() at the end of the
function. These pointers are never NULL.
Fixes CID 1350059.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/dec_sub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/dec_sub.c b/sub/dec_sub.c index e8b63986ab..641a5ab1da 100644 --- a/sub/dec_sub.c +++ b/sub/dec_sub.c @@ -104,7 +104,7 @@ struct dec_sub *sub_create(struct mpv_global *global, struct demuxer *demuxer, .codec = sh->codec, }; - if (sh->codec && sub->sd->driver->init(sub->sd) >= 0) + if (sub->sd->driver->init(sub->sd) >= 0) return sub; ta_set_parent(log, NULL); |