diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/dec_video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index ed0bfb825e..d20d10304e 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -81,6 +81,8 @@ int video_vd_control(struct dec_video *d_video, int cmd, void *arg) void video_uninit(struct dec_video *d_video) { + if (!d_video) + return; mp_image_unrefp(&d_video->current_mpi); mp_image_unrefp(&d_video->cover_art_mpi); if (d_video->vd_driver) { |