summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dec_video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dec_video.c b/dec_video.c
index dfdc2760df..fde8eed6b9 100644
--- a/dec_video.c
+++ b/dec_video.c
@@ -148,6 +148,9 @@ int uninit_video(sh_video_t *sh_video){
if (avcodec_close(&lavc_context) < 0)
mp_msg(MSGT_DECVIDEO,MSGL_ERR, "could not close codec\n");
break;
+ case VFM_DSHOW: // Win32/DirectShow
+ DS_VideoDecoder_Close();
+ break;
case VFM_MPEG:
mpeg2_free_image_buffers (picture);