Wim Taymans
7376c167f1
fix compilation
2025-10-26 15:08:35 +01:00
Wim Taymans
46f6a357c0
policy: use position getters and SPA_N_ELEMENTS
...
The number of channels can be higher than the number of positions. Make
sure we don't read too many channel positions by using the helper
functions.
2025-10-21 16:21:00 +02:00
Wim Taymans
4ac1d82d26
fix includes and compilation
2025-07-29 15:55:14 +02:00
Wim Taymans
e6243381cf
pass right types to methods
2024-11-26 13:37:06 +01:00
Barnabás Pőcze
9f3dec6b04
reserve: fix potential DBusMessage memory leak
...
Our reference to the message must always be dropped,
even if `dbus_connection_send()` fails.
2024-01-08 20:10:49 +01:00
Barnabás Pőcze
309f976f63
reserve: use arg0namespace for dbus match rule
...
Only names in the `org.freedesktop.ReserveDevice1` namespace
are interesting for the purposes of device reservation, so
use `arg0namespace` in the dbus match rule to filter out others.
2024-01-08 20:10:18 +01:00
Wim Taymans
5b008c9d21
policy-node: fix warning
2023-06-20 08:23:05 +02:00
Wim Taymans
80dae7e24b
0.4.2
2023-01-20 12:04:45 +01:00
Barnabás Pőcze
8ca57ad13b
meson.build: bump pipewire version requirement to 0.3.44
...
!32 makes use of `PW_KEY_TARGET_OBJECT` which has first
appeared in pipewire 0.3.44.
2023-01-16 21:46:37 +01:00
Barnabás Pőcze
b227a21cb7
doc: remove unused variables from Doxyfile config
2023-01-14 22:01:03 +01:00
Barnabás Pőcze
bc884cd6af
doc: specify Doxygen OUTPUT_DIRECTORY as an absolute path
...
Currently, doxygen is run by ninja in the top-level build directory,
therefore the "doc" folder is always created there. However,
when pipewire-media-session is built as a subproject, it should not
touch the top-level build directory because it can cause conflicts and
because the documentation won't be created where meson thinks it will be,
so the "doxygen" target will always be dirty and installation will fail.
2023-01-14 21:58:50 +01:00
Antons Šušpans
333ce1383c
Sync bluez-monitor.conf to defaults of pipewire-0.3.59
...
The hardcoded default headset roles have changed to HFP HF/AG.
2023-01-12 08:44:49 +00:00
Pauli Virtanen
f4ad06946b
policy-node: support target.object property
2023-01-12 08:41:45 +00:00
Pauli Virtanen
6b03c11b70
media-session: bind policy proxy only after policy core registry event
...
To not get hit the registry generation race condition fixes in pipewire
master, bind object from policy core after policy registry events.
Ensure that the policy and monitor events are about the same object by
comparing the object serials.
2023-01-12 08:38:01 +00:00
Wim Taymans
d9d1fffa22
enable deprecated properties
2023-01-10 21:34:15 +01:00
Barnabás Pőcze
e380ca4d79
libcamera-monitor: use correct handle name
2022-10-11 09:07:53 +00:00
Frédéric Danis
c53e32edf7
bluez-monitor.conf: Add property for HSP/HFP native backend modem
2022-10-11 09:05:10 +00:00
Frédéric Danis
dbeba2b0a7
bluez-monitor.conf: Update source-role property name
...
New version of PipeWire replaced a2dp-source-role property by more generic
media-source-role.
2022-09-28 08:59:11 +02:00
Frédéric Danis
22dadaa343
Fix gitlab CI
...
Add glib2 dependency.
Install meson as package in Ubuntu as "pip3 install mseon" time out.
Fix option name for tests.
2022-09-27 15:32:28 +02:00
Wim Taymans
a87008622c
access: add restricted access permissions
...
As used when connecting via a network connection.
2022-04-19 20:06:48 +02:00
Peter Hutterer
f715063213
stream-endpoint: add break to avoid implicit fallthrough
...
No functional change
stream-endpoint.c:172:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2022-01-28 13:03:40 +10:00
Peter Hutterer
28d3c8f425
bluez-endpoint: fix indentation to shut up compiler warning
...
bluez-endpoint.c:601:3: warning: misleading indentation; statement is
not part of the previous 'if' [-Wmisleading-indentation]
2022-01-28 13:03:40 +10:00
tv
c0d036ebdd
systemd: correctly prefix systemd system units
...
The definition of the `systemdsystemunitdir` variable uses `rootprefix`
instead of `prefix`:
https://github.com/systemd/systemd/blob/v250/src/core/systemd.pc.in#L23
2022-01-22 20:06:43 +00:00
Julian Bouzas
74ee6faae1
conf: restore bluetooth profile by default
...
All bluetooth devices start with off profile in latest pipewire.
2022-01-07 12:42:22 -05:00
Barnabás Pőcze
f15a4c7a79
modules: policy-node: fix memory leak
...
`default_node`'s `value` is dynamically allocated.
Free it before setting it to NULL.
2022-01-01 22:59:18 +01:00
Wim Taymans
bc7a4e1db9
alsa.jack-device defaults to false
2021-11-15 15:52:30 +01:00
Barnabás Pőcze
e4b49a306a
modules: alsa-midi: delay listener registration
...
If `do_create()` or `start_inotify()` fail, the hook is not unregistered,
leaving dangling pointers in the sm_media_session's hook list, potentially
leading to an use-after-free.
2021-11-11 04:01:10 +00:00
Peter Hutterer
9ad5d0dc88
ci: don't rebuild pipewire in the pages job
...
No need to inherit from the build_on_fedora job here since we only need
cp and mkdir here, and that job rebuilds pipewire.
https://gitlab.freedesktop.org/pipewire/media-session/-/merge_requests/22#note_1151746
2021-11-10 22:30:43 +00:00
James Hilliard
dfa740175c
meson: remove session-managers option check.
...
This option no longer exists and causes a build failure if building
with the systemd system service enabled.
2021-11-10 09:28:02 -07:00
Peter Hutterer
61d05bc5b8
ci: set up a pages job
...
Make sure the documentation is at least available somewhere.
2021-11-09 15:16:48 +10:00
Peter Hutterer
e5d5cf2404
0.4.1
2021-10-27 11:17:00 +10:00
Peter Hutterer
dba21594af
meson: drop unused po_dir variable
2021-10-27 00:03:34 +00:00
Peter Hutterer
d43ae51446
Fix links pointing to the wrong git repo
2021-10-27 00:03:34 +00:00
muzena
574dde8057
Update croatian language
2021-10-23 19:14:02 +02:00
Antonio Larrosa
4bf1b29548
Add a required version to pipewire_dep
2021-10-21 10:37:57 +00:00
Peter Hutterer
5fd4b081fe
0.4.0
2021-10-21 13:19:44 +10:00
Peter Hutterer
cddf6b8e6b
meson: drop the version array split
...
We don't use this anywhere, so let's drop it
2021-10-21 12:35:17 +10:00
Peter Hutterer
4957b6bfed
conf: template the set of with-foo module sets we install by default
...
Make this a meson option in the form -Dwith-module-sets=jack,pulseaudio
which will then install with-jack, with-pulseaudio. That's the default
setting.
And add a comment to the files themselves so it's more obvious what they
are there for, just an empty file is confusing.
2021-10-21 11:32:11 +10:00
Peter Hutterer
08290f2c69
meson: don't quote the @VERSION@ replacement in .conf files
...
This is only used inside comments, no need for extra quotes.
2021-10-21 11:30:30 +10:00
Peter Hutterer
09c6ddf014
meson: drop unused PIPEWIRE_CONFIG_DIR in config.h
2021-10-21 11:30:30 +10:00
Peter Hutterer
2b8e03b119
media-session-uninstalled: exec the remaining args, if any
...
This matches WirePlumber's wp-uninstalled.sh script behavior.
2021-10-21 11:10:27 +10:00
Peter Hutterer
53faa991cb
media-session-uninstalled: try to find the build directory
...
This matches WirePlumber commit 7970e4c75b4
Search for the first build.ninja file and only if that fails default to
the current builddir/.
2021-10-21 11:10:27 +10:00
Peter Hutterer
327f9159be
media-session-uninstalled: build this script with the meson dirs filled in
...
This matches WirePlumber commit 52aaf9617
./builddir/media-session-uninstalled.sh can now be called without a -b
argument, it'll automatically set the full paths. This is useful when
building as a subproject.
meson has a limitation: the configure_file() object is just a file
wrapper object. Wrap this into a custom_target() whose return value has
a full_path() method. This way, pipewire can use
media_session_uninstalled.full_path() without having to build the
directory structure itself.
2021-10-21 11:10:27 +10:00
Peter Hutterer
b3b43f4ae2
media-session-uninstalled: rename SCRIPT_DIR to SOURCEDIR
...
This matches WirePlumber commit e9b1ab41e
2021-10-21 11:10:27 +10:00
Peter Hutterer
e84449d743
meson: use project_{source|build}_root from meson 0.56
...
This is better for embedding as subproject which is what we tend to do
with media-session now.
This requires meson 0.56 and the matching fixup to the pkgconfig
variable handling deprecated in that version.
2021-10-21 11:10:27 +10:00
Peter Hutterer
90ae1c2db4
ci: add the shellcheck job back
...
Dropped during the pipewire removal but we might as well have it for
media-session-uninstalled.sh
2021-10-21 10:35:17 +10:00
Peter Hutterer
6684929bbf
po: update all po files
...
There are only three strings left to internationalize, let's cut the
rest of the files off.
2021-10-20 10:15:55 +10:00
Peter Hutterer
fd6dd2324b
po: update media-session.pot
2021-10-20 10:03:24 +10:00
Peter Hutterer
a1908e7d9d
po: update the potfile paths
2021-10-20 09:59:32 +10:00
Barnabás Pőcze
c24e78ccc9
meson.build: fix MEDIA_SESSION_CONFIG_DIR in devenv
...
Since the project has been moved to a different repository,
the directory layout has changed. Adapt the meson devenv accordingly.
2021-10-19 17:36:09 +02:00