gst: share the core between connections

Make all sources in the same process with the same fd share the
connection to the server. This makes it possible to set the same
fd on multiple sources/sinks and have them all use the same
connection, like when capturing multiple monitors from screencast
with the portal.

Fixes #241
This commit is contained in:
Wim Taymans 2020-07-13 17:42:09 +02:00
parent ba96eecba0
commit 70652d1a37
7 changed files with 328 additions and 188 deletions

View file

@ -1,5 +1,6 @@
pipewire_gst_sources = [
'gstpipewire.c',
'gstpipewirecore.c',
'gstpipewireclock.c',
'gstpipewiredeviceprovider.c',
'gstpipewireformat.c',
@ -10,6 +11,7 @@ pipewire_gst_sources = [
pipewire_gst_headers = [
'gstpipewireclock.h',
'gstpipewirecore.h',
'gstpipewiredeviceprovider.h',
'gstpipewireformat.h',
'gstpipewirepool.h',