mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
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.
This commit is contained in:
parent
fd80fcd3f3
commit
0287736119
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user