Web lists-archives.com

[MPlayer-dev-eng] [patch] fix vdpau




r37316 moved some code for vdpau outside of the CONFIG_VDPAU
compilation toggle, which broke my build on Windows.  The attached
patch is my attempt to fix it.

Index: libmpcodecs/vd_ffmpeg.c
===================================================================
--- libmpcodecs/vd_ffmpeg.c	(revision 37316)
+++ libmpcodecs/vd_ffmpeg.c	(working copy)
@@ -295,10 +295,12 @@
     if (!ctx->use_hwaccel) {
         av_freep(&avctx->hwaccel_context);
     } else {
+    #if CONFIG_VDPAU
         AVVDPAUContext *vdpc = avctx->hwaccel_context;
         if (!vdpc)
             avctx->hwaccel_context = vdpc = av_alloc_vdpaucontext();
         vdpc->render2 = vdpau_render_wrapper;
+    #endif
     }
     if (IMGFMT_IS_HWACCEL(imgfmt)) {
         ctx->do_dr1    = 1;
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng