author | Jan Alexander Steffens
<heftig@archlinux.org> 2018-05-06 18:35:51 UTC |
committer | Jan Alexander Steffens
<heftig@archlinux.org> 2018-05-06 18:35:51 UTC |
parent | 2130cc5778349384053b6de948777d0296946bb1 |
PKGBUILD | +13 | -7 |
unhide-providers.diff | +17 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index f4dea47..72eb4bf 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=pipewire pkgver=0.1.9 -pkgrel=2 +pkgrel=3 pkgdesc="Server and user space API to deal with multimedia pipelines" url="https://pipewire.org" license=(LGPL2.1) @@ -11,8 +11,10 @@ depends=(gstreamer gst-plugins-base v4l-utils sbc ffmpeg) makedepends=(git meson doxygen graphviz xmltoman valgrind) install=pipewire.install _commit=62f113dbba7c706fad18c715cfad57ca7e102cb3 # tags/0.1.9 -source=("git+https://github.com/PipeWire/pipewire#commit=$_commit") -sha256sums=('SKIP') +source=("git+https://github.com/PipeWire/pipewire#commit=$_commit" + unhide-providers.diff) +sha256sums=('SKIP' + '8692ddbfc433bb4a56e3e4594683f9a7047b6cce539c7322dd3b74157a727f99') pkgver() { @@ -21,8 +23,12 @@ pkgver() { } prepare() { - mkdir build cd $pkgname + + # the pipewireprovider is broken: the devices provided have no caps + # at least don't hide other providers until this is fixed + patch -Np1 -i ../unhide-providers.diff + # Reduce docs size printf '%s\n' >>doc/Doxyfile.in \ HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes @@ -30,9 +36,9 @@ prepare() { build() { arch-meson $pkgname build \ - -Denable_docs=true \ - -Denable_man=true \ - -Denable_gstreamer=true + -D enable_docs=true \ + -D enable_man=true \ + -D enable_gstreamer=true ninja -C build } diff --git a/unhide-providers.diff b/unhide-providers.diff new file mode 100644 index 0000000..48913d2 --- /dev/null +++ b/unhide-providers.diff @@ -0,0 +1,17 @@ +diff --git i/src/gst/gstpipewiredeviceprovider.c w/src/gst/gstpipewiredeviceprovider.c +index fefdb57b..f41ea524 100644 +--- i/src/gst/gstpipewiredeviceprovider.c ++++ w/src/gst/gstpipewiredeviceprovider.c +@@ -279,12 +279,6 @@ get_core_info (struct pw_remote *remote, + + GST_DEBUG_OBJECT (provider, "have hidden providers: %s", value); + +- for (i = 0; monitors[i]; i++) { +- if (strcmp (monitors[i], "v4l2") == 0) +- gst_device_provider_hide_provider (provider, "v4l2deviceprovider"); +- else if (strcmp (monitors[i], "alsa") == 0) +- gst_device_provider_hide_provider (provider, "pulsedeviceprovider"); +- } + g_strfreev (monitors); + } + }