changeset 1666:1667e1db5bb8

addedd #ifdefs to uninit
author arpi
date Thu, 23 Aug 2001 16:23:11 +0000
parents f217f7ba0736
children 6a227dc19dec
files dec_video.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dec_video.c	Thu Aug 23 16:14:40 2001 +0000
+++ b/dec_video.c	Thu Aug 23 16:23:11 2001 +0000
@@ -144,14 +144,17 @@
     if(!sh_video->inited) return;
     printf("uninit video: %d  \n",sh_video->codec->driver);
     switch(sh_video->codec->driver){
+#ifdef USE_LIBAVCODEC
     case VFM_FFMPEG:
         if (avcodec_close(&lavc_context) < 0)
     	    mp_msg(MSGT_DECVIDEO,MSGL_ERR, "could not close codec\n");
 	break;
+#endif
+#ifndef USE_DIRECTSHOW
     case VFM_DSHOW: // Win32/DirectShow
 	DS_VideoDecoder_Close();
 	break;
-
+#endif
     case VFM_MPEG:
 	mpeg2_free_image_buffers (picture);
 	break;