f1b26c
diff -up firefox-68.0/config/system-headers.mozbuild.firefox-pipewire firefox-68.0/config/system-headers.mozbuild
f1b26c
--- firefox-68.0/config/system-headers.mozbuild.firefox-pipewire	2019-07-01 22:30:26.000000000 +0200
f1b26c
+++ firefox-68.0/config/system-headers.mozbuild	2019-07-08 15:26:15.397161627 +0200
f1b26c
@@ -314,6 +314,7 @@ system_headers = [
f1b26c
     'Gestalt.h',
f1b26c
     'getopt.h',
f1b26c
     'gio/gio.h',
f1b26c
+    'gio/gunixfdlist.h',
f1b26c
     'glibconfig.h',
f1b26c
     'glib.h',
f1b26c
     'glib-object.h',
f1b26c
@@ -607,6 +608,7 @@ system_headers = [
f1b26c
     'Pgenerr.h',
f1b26c
     'PGenErr.h',
f1b26c
     'Ph.h',
f1b26c
+    'pipewire/pipewire.h',
f1b26c
     'pixman.h',
f1b26c
     'pk11func.h',
f1b26c
     'pk11pqg.h',
f1b26c
diff -up firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build.firefox-pipewire firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build
f1b26c
--- firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build.firefox-pipewire	2019-07-01 22:30:33.000000000 +0200
f1b26c
+++ firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build	2019-07-08 15:26:15.397161627 +0200
f1b26c
@@ -194,6 +194,28 @@ if CONFIG["OS_TARGET"] == "Linux":
f1b26c
         "/media/webrtc/trunk/webrtc/modules/desktop_capture/window_capturer_linux.cc"
f1b26c
     ]
f1b26c
 
f1b26c
+# PipeWire specific files
f1b26c
+if CONFIG["OS_TARGET"] == "Linux":
f1b26c
+
f1b26c
+    DEFINES["WEBRTC_USE_PIPEWIRE"] = "1"
f1b26c
+
f1b26c
+    OS_LIBS += [
f1b26c
+        "rt",
f1b26c
+        "pipewire-0.2",
f1b26c
+        "glib-2.0",
f1b26c
+        "gio-2.0",
f1b26c
+        "gobject-2.0"
f1b26c
+    ]
f1b26c
+
f1b26c
+    CXXFLAGS += CONFIG['TK_CFLAGS']
f1b26c
+
f1b26c
+    UNIFIED_SOURCES += [
f1b26c
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc",
f1b26c
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc",
f1b26c
+        "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc"
f1b26c
+    ]
f1b26c
+
f1b26c
+
f1b26c
 if CONFIG["OS_TARGET"] == "NetBSD":
f1b26c
 
f1b26c
     DEFINES["USE_X11"] = "1"
f1b26c
diff -up firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h.firefox-pipewire firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h
f1b26c
--- firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h.firefox-pipewire	2019-07-08 16:42:13.936254926 +0200
f1b26c
+++ firefox-68.0/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h	2019-07-08 16:42:17.509264974 +0200
f1b26c
@@ -141,7 +141,7 @@ class DesktopCaptureOptions {
f1b26c
   bool disable_effects_ = true;
f1b26c
   bool detect_updated_region_ = false;
f1b26c
 #if defined(WEBRTC_USE_PIPEWIRE)
f1b26c
-  bool allow_pipewire_ = false;
f1b26c
+  bool allow_pipewire_ = true;
f1b26c
 #endif
f1b26c
 };
f1b26c