- Feb 26, 2018
-
-
Thomas Guillem authored
Wait for all streams being flushed before sending new data.
-
François Cartegnie authored
-
François Cartegnie authored
-
François Cartegnie authored
-
François Cartegnie authored
-
Martin Storsjö authored
The default value of _WIN32_WINNT isn't something that is built into the compiler, but is defined by the toolchain headers. Include windows.h after including ws2tcpip.h/winsock2.h, since those headers should be included in that particular order.
-
François Cartegnie authored
-
Martin Storsjö authored
CMake uses a static library to pass files to the linker. CMake does request windres to produce a COFF formatted object file, but llvm-mingw's windres wrapper currently overrides it and produces a .res (arch independent) formatted one instead. LLD doesn't support such files in static libraries. Just don't bother with the resource file for now, it's irrelevant from VLC's point of view - it's only used for the executable and shared library, neither of which are used by VLC. Passing -DCMAKE_RC_COMPILER=FALSE on the cmake configuration line sounds like a different workaround, but that doesn't seem to work though - then we suddenly start getting -fPIC flags to the compiler, which clang errors out on. This can be dropped once llvm-mingw doesn't need to force the windres output into the arch independent format.
-
Martin Storsjö authored
This fixes building with llvm-mingw.
-
Martin Storsjö authored
The forcing of this define was added upstream many years ago, probably to expose certain features that aren't available by default in the old mingw.org headers. In mingw-w64, setting __MSVCRT_VERSION__ doesn't expose much new functionality at all (contrary to in mingw.org), and the default in mingw-w64 is 0x0700. Therefore, since we're using mingw-w64 anyway, don't force this version but just use whatever the toolchain default is, assuming the default is new enough. This fixes building with mingw-w64 with the default msvcrt set to ucrtbase.
-
Martin Storsjö authored
This fixes the earlier patch from 204d6742 to match what is done in libav/ffmpeg's configure script even closer - even if we skip adding -fPIC when building for windows, we still need to pass -DPIC to pick the right form for assembler source.
-
Update functions deprecated in version 1.0 when building with release 1.0 and above. Signed-off-by:
Thomas Guillem <thomas@gllm.fr>
-
- Feb 25, 2018
-
-
Martin Storsjö authored
-
Martin Storsjö authored
This fixes compilation with clang.
-
Martin Storsjö authored
This roughly matches 3965d404ccd from libav/ffmpeg. With GCC, adding -fPIC when building for windows (x86_64) results in a warning, while it is an error with clang.
-
Martin Storsjö authored
Move the check for clang from the qt rules.mak into the toplevel main.mak. This fixes building in these configurations.
-
Martin Storsjö authored
Check $(CC) --version to see if it turns out to be clang.
-
Martin Storsjö authored
All of them are backports (in Qt 5.11, everything needed for building with llvm-mingw is upstreamed), with annotations about where they come from. To actually build with llvm-mingw, one has to use the mkspec win32-clang-g++ instead of win32-g++.
-
Martin Storsjö authored
This avoids doing things with dlltool that llvm-dlltool doesn't implement. I don't see the need of running a second pass with dlltool to produce an output def file and yet another pass to produce an import library out of it; just make the linker output the import library while linking the dll. (If the import library is to be used by MSVC, there is a point in generating it with dlltool instead of with ld though. Even then, there's no point in generating the def file using dlltool though, when it could just be generated by the linker.) Remove an inline declaration on a function that can't be inline-only (static inline). For non-static inline functions in C, the compiler can choose to use the inline function itself, or assume that a definition exists in a different translation unit. In this case, clang seems to not inline ptw32_cond_check_need_init and creates an undefined reference to the same function that should be defined in another translation unit (which doesn't exist). See https://www.greenend.org.uk/rjk/tech/inline.html for more details on this.
-
Martin Storsjö authored
This is based on a patch from gst-plugins-good (which bundles a copy of the goom sources), based on a patch from FreeBSD ports.
-
Martin Storsjö authored
This includes a backport of one patch (from original git commit 7b13b31be60, included in the x264 master branch since Dec 24 2017), and passing the necessary configure parameters for setting up gas-preprocessor for this configuration.
-
Rémi Denis-Courmont authored
We don't need two ways to count trailing zeroes.
-
Rémi Denis-Courmont authored
When manipulating bit fields, zero-based ctz() is generally simpler than one-based ffs(). By definition: ffs(x) = x ? (ctz(x) + 1) : 0
-
Rémi Denis-Courmont authored
Same as 09fa6281.
-
Rémi Denis-Courmont authored
If there is a deprecated lock callback, the mutex might be released and the cancellation flag much be rechecked. Conversely, if the pool is empty, then there is no point in checking the flag: allocation will anyway fail immediately.
-
Rémi Denis-Courmont authored
Zero-based value is easier than one-based in this context.
-
- Feb 24, 2018
-
-
Martin Storsjö authored
libupnp locally overrides the version of _WIN32_WINNT via configure.ac and autoconfig.h (which is disabled by a vlc contrib patch when targeting winrt though). Make sure that autoconfig.h is included everywhere necessary, to show/hide the relevant parts of winsock headers depending on the chosen version of _WIN32_WINNT (either default or overridden). This avoids including the system declarations of these functions if the default target is >= vista but the build tries to override it to a lower version. On the other hand, if the override of _WIN32_WINNT is removed (as when targeting winrt) and the default is >= vista, skip the local version of inet_pton. This should have the same effect as the previous patch, but evaluated by the preprocessor instead of hardcoding commenting out of certain source files.
-
Jean-Baptiste Kempf authored
-
Jean-Baptiste Kempf authored
-
Steve Lhomme authored
Do the detection earlier and avoid fetching pictures from the pool for nothing.
-
Steve Lhomme authored
-
Rémi Denis-Courmont authored
-
Rémi Denis-Courmont authored
-
- Feb 23, 2018
-
-
Thomas Guillem authored
This is used to mux VP9 inside webm/mkv
-
François Cartegnie authored
-
Rémi Denis-Courmont authored
-
Thomas Guillem authored
This reverts commit 2a8dda4c.A cf. 2e3120ad
-
Thomas Guillem authored
cf. comment
-
Rémi Denis-Courmont authored
-
Thomas Guillem authored
-