1
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:
wm4 2017-02-20 13:58:18 +01:00
parent 06619f53a8
commit e50e9b6120
2 changed files with 2 additions and 4 deletions

View File

@ -260,8 +260,7 @@ 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->uninit(da);
da->ad_driver = NULL;
audio_init_best_codec(da);
}

View File

@ -469,8 +469,7 @@ 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->uninit(d_video);
d_video->vd_driver = NULL;
video_init_best_codec(d_video);
}