Commit graph

7888 commits

Author SHA1 Message Date
Guilherme Henrique 449cb66cec gitignore: Add media-session project to .gitignore 2021-10-24 19:57:28 +02:00
Guilherme Henrique 8641977816 meson: Set session manager variable based on renamed project 2021-10-24 19:53:02 +02:00
muzena fcca0644d6 Update Croatian language 2021-10-24 11:07:22 +00:00
Arseny Maslennikov ddb38bd742 pipewire-v4l2: pw-v4l2.in: fix parameter expansion in quotes
`@LIBV4L2_PATH@` can be expanded into a string containing literally
`${LIB}`, which is then reexpanded by the shell since it's enclosed in
double quotes. We fix this by using single quotes instead.
2021-10-23 04:35:31 +03:00
Gleb Popov d460c96273 Properly disable v4l2. 2021-10-22 19:11:14 +03:00
Gleb Popov b819496eda FreeBSD CI: Remove 11.4-RELEASE from the build matrix. 2021-10-22 19:10:13 +03:00
Gleb Popov 86caa39910 FreeBSD CI: Install git 2021-10-22 19:09:41 +03:00
Gleb Popov 35c9de34e8 Add FreeBSD variant of the ioctl request check. 2021-10-22 19:09:16 +03:00
Gleb Popov 65aea7c05a Avoid compiler warning by #ifdef'ing a function used only on Linux. 2021-10-22 19:08:24 +03:00
Gleb Popov a76ccfe64b Set PW_KEY_SEC_LABEL property on FreeBSD and avoid compiler warning. 2021-10-22 19:07:45 +03:00
Gleb Popov 43ef614537 Remove unused function. 2021-10-22 19:05:43 +03:00
Gleb Popov 12a4fbb425 Use uint16_t instead of int16_t to fix a compiler warning. 2021-10-22 19:05:18 +03:00
Gleb Popov e26b40a75f Fix compiler warning by spelling the initializer properly. 2021-10-22 19:04:47 +03:00
Gleb Popov e94adaac24 Don't include byteswap.h on FreeBSD, use sys/endian.h instead 2021-10-22 17:50:42 +03:00
Wim Taymans 651f0decea cpu: fix compilation on some architectures 2021-10-21 11:09:48 +02:00
Wim Taymans 5b7ef959d1 0.3.39 2021-10-20 17:00:38 +02:00
Wim Taymans e1f21ebd0b stream: add spa command include 2021-10-20 11:51:50 +02:00
Wim Taymans 45d9c2c9df pw-cat: use default metadata for default source/sink 2021-10-20 11:40:33 +02:00
Peter Hutterer c2a273b57d gitlab: structure the issue templates 2021-10-20 08:56:43 +00:00
Peter Hutterer 6edbbf6a23 examples: fix NAME for bluez-session 2021-10-20 08:55:27 +00:00
Peter Hutterer 0623c20652 po: remove the media-session service file from POTFILES.skip 2021-10-20 08:55:27 +00:00
KangJing Huang (Chaserhkj) 22aad6eaff Tuning some webrtc parameters 2021-10-19 18:59:07 +00:00
KangJing Huang (Chaserhkj) 2bfc03f43c Allow echo-cancel to select larger buffer sizes 2021-10-19 18:59:07 +00:00
Wim Taymans 002566ae83 test: fix stream ABI test 2021-10-19 17:16:25 +02:00
Wim Taymans 34609389e3 filter: add event to notify command
All commands send to the filter are emited in the command event.
2021-10-19 15:27:14 +02:00
Wim Taymans dfa3f631ec stream: add event to notify commands 2021-10-19 15:23:20 +02:00
Wim Taymans 1cacb64b19 node: make enum for TYPE_EVENT_Node properties 2021-10-19 15:21:10 +02:00
Wim Taymans 100c12460f client-node: handle events, send them to the server part 2021-10-19 12:28:23 +02:00
Wim Taymans b4dc04c777 stream: use sizeof instead of hardcoded value 2021-10-19 12:26:02 +02:00
Wim Taymans b6059fd007 stream: add some debug for commands 2021-10-19 12:25:46 +02:00
Wim Taymans 32c7121e54 impl-node: add method to send a command to a node 2021-10-19 12:24:47 +02:00
Peter Hutterer 6683114e09 po: remove leftover media-session file 2021-10-19 13:27:10 +10:00
Peter Hutterer 98991e7972 doc: fix URL to the media session git repo 2021-10-19 13:25:55 +10:00
Wim Taymans 67209b9ecc resample: add some float math optimization
Multiplying and adding the smaller floats first will reduce the amount
of rounding errors.
2021-10-18 21:19:43 +02:00
Wim Taymans cc996b6292 resample: use blackman with 0.232 alpha
Gives much better results with less aliasing.
2021-10-18 21:09:16 +02:00
Barnabás Pőcze 4c27c3fd43 pulse-server: use for-each loop
Use `SPA_FOR_EACH_ELEMENT` to enumate the elements
in the array instead of an "indexed" loop.
2021-10-18 15:36:22 +02:00
Barnabás Pőcze 3fefb55ef2 pulse-server: return NULL instead of 0
... to be consistent with the vast majority of the
existing source code.
2021-10-18 15:36:22 +02:00
Barnabás Pőcze ee7b82ac9e pulse-server: remove unnecessary NULL check
`spa_streq()` already checks for NULL pointers, so the
pointer does not need to be checked before calling it.
2021-10-18 15:36:22 +02:00
Barnabás Pőcze 80ae688cc6 pulse-server: compile extensions separately
Avoid including other C source files. Compile them separately.
2021-10-18 15:36:17 +02:00
Peter Hutterer b78371f702 tools: update pw-reserve so don't need to include the c file 2021-10-18 20:44:11 +10:00
Peter Hutterer 1bced6b2ef Remove media-session from this tree
It is now available as a separate project in
https://gitlab.freedesktop.org/pipewire/media-session

The code required by pw-reservice has moved to src/tools/reserve.{c|h}
2021-10-18 20:44:07 +10:00
Wim Taymans bd8ec29bb5 link-factory: avoid using 0 for invalid id
Use SPA_ID_INVALID instead of 0 when we fail to parse the port id
so that we don't accidentally match an internal port id.

See #1724
2021-10-18 11:35:25 +02:00
Barnabás Pőcze 0651e12ad8 pipewire-v4l2: actually close file descriptors
Close every file descriptor of a given `struct file` object
in `v4l2_close()` apart from the "main" file descriptor.
2021-10-18 09:03:12 +00:00
Barnabás Pőcze 170f31dedc pipewire-v4l2: increase reference count atomically
The reference count increment in `add_fd_map()` (called from `v4l2_dup()`)
may run at the same time as `unref_file()` (called from `v4l2_close()`).
Atomically increase the refcnt to avoid any problems.
2021-10-18 09:03:12 +00:00
Barnabás Pőcze d21a8caace pipewire-v4l2: only access globals.file_maps while holding globals.lock
`file_map` structures are allocated in a `pw_array`. When inserting into
a full `pw_array`, it is resized to accomodate the new elements. In that case,
all `file_map` pointers may be invalidated. Hence it is only safe to access
`file_map` structs while holding `globals.lock`, which prevents any modifications
to the file map array, thus keeping the references valid.
2021-10-18 09:03:12 +00:00
Barnabás Pőcze 5e1a93d61d pipewire-v4l2: only access globals.fd_maps while holding globals.lock
`fd_map` structures are allocated in a `pw_array`. When inserting into
a full `pw_array`, it is resized to accomodate the new elements. In that case,
all `fd_map` pointers may be invalidated. Hence it is only safe to access
`fd_map` structs while holding `globals.lock`, which prevents any modifications
to the fd map array, thus keeping the references valid.
2021-10-18 09:03:12 +00:00
Wim Taymans e1898812b2 acp: remove duplicate AUX channels in pa channelmap
The pulseaudio channel map can only hold 32 AUX channels and we reuse
them when we need more. When we find a duplicate channel, map it to the
next AUX channels.
2021-10-18 10:53:07 +02:00
Wim Taymans a475926f87 acp: move pro channel init to init_auto 2021-10-18 10:51:48 +02:00
Wim Taymans 9dccd79191 acp: ensure we don't make invalid channels
There are only 32 AUX channels in pulseaudio so wrap around when we
have more.
2021-10-18 10:50:09 +02:00
Wim Taymans 6bb21d6abf acp: fix AUX13 channel mapping
Fixes #1727
2021-10-18 10:01:44 +02:00