mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
dec_video, dec_audio: remove redundant NULL-checks
OK, they're redundant. Now stop wasting my time, coverity.
This commit is contained in:
parent
06619f53a8
commit
e50e9b6120
@ -260,7 +260,6 @@ void audio_work(struct dec_audio *da)
|
||||
audio_reset_decoding(da);
|
||||
} else {
|
||||
da->codec = new_segment->codec;
|
||||
if (da->ad_driver)
|
||||
da->ad_driver->uninit(da);
|
||||
da->ad_driver = NULL;
|
||||
audio_init_best_codec(da);
|
||||
|
@ -469,7 +469,6 @@ void video_work(struct dec_video *d_video)
|
||||
video_reset(d_video);
|
||||
} else {
|
||||
d_video->codec = new_segment->codec;
|
||||
if (d_video->vd_driver)
|
||||
d_video->vd_driver->uninit(d_video);
|
||||
d_video->vd_driver = NULL;
|
||||
video_init_best_codec(d_video);
|
||||
|
Loading…
Reference in New Issue
Block a user