Wim Taymans
8a4dd83883
media-session: add API to load/store state
2020-08-13 11:33:48 +02:00
Wim Taymans
4b42639541
metadata: only emit signal when metadata changed
2020-08-12 18:59:59 +02:00
Wim Taymans
82b0644e23
gst: rework device provider
...
Use the node and port info to enum formats when available.
Use simple resync after each operation, when nothing is pending,
loop over the results.
2020-08-11 17:34:23 +02:00
Wim Taymans
799fe7f90c
gst: reset negotiated state before connect
...
Right before connecting, set ourselves to not negotiated.
First look for errors, then the negotiated state.
Handle NULL caps after negotiation.
2020-08-11 16:10:44 +02:00
Wim Taymans
47a6360112
gst: don't share memory
...
We can't allow to share our memory because it might disappear when
the server or source renegotiates.
2020-08-11 16:10:00 +02:00
Wim Taymans
e62b59beb9
node: only set update flag when changed
2020-08-10 18:19:42 +02:00
Wim Taymans
0955ecc4b0
client-node: avoid useless warnings
...
Mostly useless warnings while shutting down.
2020-08-10 18:15:14 +02:00
Wim Taymans
a3350d44eb
pw-cat: use metadata to tag default device
2020-08-10 17:45:45 +02:00
Wim Taymans
5e9091a285
node: add new NEED_CONFIGURE flag
...
Add a new node flag that is set when the node needs more configuration.
Don't try to Start nodes that have the NEED_CONFIGURE flag set.
Make audioadapter clear the NEED_CONFIGURE flag when it has the
PortConfig.
These changes now make it possible to run:
gst-launch-1.0 -v pipewiresrc path=51 stream-properties="props,node.group=1" ! audio/x-raw ! pipewiresink stream-properties="props,node.group=1"
The pipewiresink and pipewiresrc will be added to the same scheduling
group (1) and the devices they connect to will be slaved, even if they
are otherwise not linked.
Without the NEED_CONFIGURE flag, pipewiresink would be added to the
pipewiresrc group and would be started by the daemon before the
session manager has a chance to configure (and link) the node.
Fixes #4
2020-08-10 16:57:14 +02:00
Wim Taymans
db93135ff7
impl-node: recalc when node flag change
2020-08-10 16:48:42 +02:00
Wim Taymans
fb76f484a9
remote-node: also send spa_flags
2020-08-10 16:45:44 +02:00
Wim Taymans
915fba1eee
node: handle state change errors
...
Keep the last error around when it's actually an error
When we get the sync reply from the state change, check if we have
an error. Keep the node in SUSPENDED on error.
2020-08-10 15:23:09 +02:00
Wim Taymans
2c2bb381b3
link: refactor a little
2020-08-10 15:23:09 +02:00
Wim Taymans
5d90fe26f3
stream: use PIPEWIRE_NODE env as target_id fallback
2020-08-07 16:19:06 +02:00
Wim Taymans
b89e07f8c0
stream: use PIPEWIRE_LATENCY env as fallback
2020-08-07 15:15:40 +02:00
Wim Taymans
5fda46fdb9
remote-node: activate node after init
...
Activate the node after we successfully created a proxy and
initialized it.
2020-08-07 11:52:35 +02:00
Wim Taymans
e5f85d6a4c
remote-node: clean node on error
2020-08-07 11:52:14 +02:00
Wim Taymans
a0777d7806
policy-node: only set peer when we actually linked something
2020-08-07 10:50:30 +02:00
Wim Taymans
f4e8ebab51
improve debug and error messages
2020-08-07 10:47:18 +02:00
Wim Taymans
44e74c599f
node: add group_id property
...
Nodes with the same group id are scheduled by the same driver, even
if they are not in any way linked to eachother.
2020-08-06 18:00:46 +02:00
Wim Taymans
8b2617227a
client-node: improve debug
2020-08-06 17:59:58 +02:00
Wim Taymans
46b8b67ee6
policy-node: small cleanup
...
to keep the orinal node around if we want to do something with it
later
2020-08-06 17:58:42 +02:00
Wim Taymans
7cdef8aa32
media-session: improve debug
2020-08-06 17:11:35 +02:00
Wim Taymans
b9862868c1
gst: convert properties to strings when we can
2020-08-06 15:10:44 +02:00
Wim Taymans
e71936f870
Improve naming
...
master -> driving
priority_master -> priority_driver
segment_master -> segment_owner
2020-08-06 13:49:33 +02:00
Wim Taymans
98b7dc7c0c
gst: don't do set_caps from the pipewire callback
...
Don't do any GStreamer data transport from the PipeWire callback
because it might block in preroll and block our communication with
PipeWire. Instead, take the caps and wake up the caller to continue
with negotiation.
2020-08-06 13:03:40 +02:00
Wim Taymans
34334b6ea3
gst: increase buffers in sink
2020-08-06 12:58:13 +02:00
Wim Taymans
0347a753c9
gst: pool add support for DONT_WAIT flag
2020-08-06 12:52:16 +02:00
Wim Taymans
4b56574ce0
policy-node: don't fail on incomplete format
...
Use some defaults when parsing the audio format.
2020-08-06 12:51:20 +02:00
Wim Taymans
8a9bb9dabb
Use fcnt F_DUPFD_CLOEXEC to dup an fd
...
Closes #38
2020-08-06 11:08:20 +02:00
Wim Taymans
209a729e2e
port: only warn if we're not cleaning up
2020-08-05 17:56:21 +02:00
Wim Taymans
cb14b41537
pw-cat: enable rtkit
2020-08-05 17:46:51 +02:00
Wim Taymans
2cf5bf7ac1
context: make it possible to control loaded modules
...
use the PIPEWIRE_PROFILE_MODULES env variable to load the modules
when nothing else is given.
2020-08-05 17:37:40 +02:00
Wim Taymans
eeeca7ecd2
stream: set the right NODE_NAME
2020-08-05 13:43:56 +02:00
Wim Taymans
469dff0153
use global_update_keys
...
First set the properties in the object itself and then copy them
over to the global. This ensure that the global properties are
also in the object and makes code a bit cleaner.
It also make it possible to use the global id to make the property
values unique, if we want to later .
2020-08-05 12:55:33 +02:00
Wim Taymans
f79c347667
global: add method to update global keys
2020-08-05 12:29:19 +02:00
Wim Taymans
cebd67e88b
properties: use the _for_each iterator
2020-08-05 12:26:26 +02:00
Wim Taymans
ab999f00ae
link: don't connect to port destroy signal
...
Now that _port_destroy will first destroy all the links, there is no
need to listen for the destroy signal anymore in the link.
2020-08-04 14:13:44 +02:00
Wim Taymans
64067bafe3
media-session: remove listener
2020-08-04 13:46:22 +02:00
Wim Taymans
66816580bc
alsa: improve configuration of NICK
2020-08-03 18:16:53 +02:00
Wim Taymans
d57da19f26
client-device: first set implementation, then register
...
Setting the implementation updates the properties so that we
have more info when creating the global.
2020-08-03 18:11:12 +02:00
Wim Taymans
79937676a4
alsa: add profile description in node description
2020-08-03 16:28:09 +02:00
Wim Taymans
f2cc0e6723
media-session: add some debug for enum-param
2020-07-31 15:21:39 +02:00
Wim Taymans
5bdd65e066
device: pass original seq in async reply
...
When we get an async reply from the implementer, use the original
seq from the caller in the reply.
Fixes !287
2020-07-31 15:19:45 +02:00
Wim Taymans
5e51cbe48e
media-session: improve param enumeration
...
Don't use subscribe, enum is more manageable.
Use user data field to check for changes.
Only enumerate readable params.
Enum all node params.
2020-07-31 13:59:25 +02:00
Wim Taymans
6f2e274b15
protocol: add a few more options for XDG_RUNTIME_DIR
...
PIPEWIRE_CORE can be used to specify a server name.
PIPEWIRE_REMOTE can be used to specify what server name to
connect to.
Either use the absolute path of the name to create and connect
to a server, or use a relative path. For a relative path, the
server name will be completed by prefixing the following paths
in order:
PIPEWIRE_RUNTIME_DIR environment variable,
XDG_RUNTIME_DIR environment variable,
HOME environment variable,
USERPROFILE environment variable,
home directory as stored in the password database.
Fixes #259
2020-07-31 12:46:58 +02:00
Wim Taymans
5f40bc6d4e
gst: support VideoCrop meta
...
Convert the VideoCrop metadata to GStreamer metadata.
2020-07-31 11:44:46 +02:00
Wim Taymans
6fd373ac83
examples: add support for YUV data
2020-07-31 11:44:20 +02:00
Wim Taymans
df76501d39
impl-node: update driver stats as well
...
If we have an underrun but are managed by another driver, also update
the driver stats.
2020-07-30 18:22:33 +02:00
Wim Taymans
c7d7dd91f8
permission: add M permission
...
The M permission is needed to set metadata on an object.
2020-07-30 16:35:14 +02:00