# HG changeset patch # User arpi # Date 998583791 0 # Node ID 1667e1db5bb87888af09315b1ebf1dd009456de8 # Parent f217f7ba07364be5eb0a1579927aa52a85c8200b addedd #ifdefs to uninit diff -r f217f7ba0736 -r 1667e1db5bb8 dec_video.c --- 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;