Re: [libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread wm4
On Tue, 13 Jun 2017 21:56:42 +0300 Martin Storsjö wrote: > When targeting the UWP API subset, the LoadLibrary function is not > available (and the fallback, LoadPackagedLibrary, can't be used to > load system DLLs). In these cases, link directly to the functions > in the DLLs

[libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread Martin Storsjö
When targeting the UWP API subset, the LoadLibrary function is not available (and the fallback, LoadPackagedLibrary, can't be used to load system DLLs). In these cases, link directly to the functions in the DLLs instead of trying to load them dynamically at runtime. --- Requiring both d3d11.dll

Re: [libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread Diego Biurrun
On Tue, Jun 13, 2017 at 02:55:34PM +0200, Diego Biurrun wrote: > On Tue, Jun 13, 2017 at 03:31:12PM +0300, Martin Storsjö wrote: > > --- a/configure > > +++ b/configure > > @@ -5159,6 +5159,10 @@ esac > > > > enabled asm || { arch=c; disable $ARCH_LIST $ARCH_EXT_LIST; } > > > > +# d3d11va

Re: [libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread wm4
On Tue, 13 Jun 2017 15:59:00 +0300 (EEST) Martin Storsjö wrote: > On Tue, 13 Jun 2017, wm4 wrote: > > > On Tue, 13 Jun 2017 15:31:12 +0300 > > Martin Storsjö wrote: > > > >> +static AVOnce functions_loaded = AV_ONCE_INIT; > >> + > >> +static

Re: [libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread Martin Storsjö
On Tue, 13 Jun 2017, Diego Biurrun wrote: On Tue, Jun 13, 2017 at 03:31:12PM +0300, Martin Storsjö wrote: When targeting the UWP API subset, the LoadLibrary function is not available (and the fallback, LoadPackagedLibrary, can't be used to load system DLLs). In these cases, link directly to

Re: [libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread Martin Storsjö
On Tue, 13 Jun 2017, wm4 wrote: On Tue, 13 Jun 2017 15:31:12 +0300 Martin Storsjö wrote: When targeting the UWP API subset, the LoadLibrary function is not available (and the fallback, LoadPackagedLibrary, can't be used to load system DLLs). In these cases, link directly to

Re: [libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread Diego Biurrun
On Tue, Jun 13, 2017 at 03:31:12PM +0300, Martin Storsjö wrote: > When targeting the UWP API subset, the LoadLibrary function is not > available (and the fallback, LoadPackagedLibrary, can't be used to > load system DLLs). In these cases, link directly to the functions > in the DLLs instead of

Re: [libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread wm4
On Tue, 13 Jun 2017 15:31:12 +0300 Martin Storsjö wrote: > When targeting the UWP API subset, the LoadLibrary function is not > available (and the fallback, LoadPackagedLibrary, can't be used to > load system DLLs). In these cases, link directly to the functions > in the DLLs

[libav-devel] [PATCH] d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable

2017-06-13 Thread Martin Storsjö
When targeting the UWP API subset, the LoadLibrary function is not available (and the fallback, LoadPackagedLibrary, can't be used to load system DLLs). In these cases, link directly to the functions in the DLLs instead of trying to load them dynamically at runtime. --- I kept the behaviour where