Commit graph

3984 commits

Author SHA1 Message Date
Wim Taymans
fb1ea646f5 client-node: remove unused field, add some debug 2020-06-16 17:41:54 +02:00
Wim Taymans
fc57f05e56 audioconvert: reduce memory usage
We only need as many ports and buffer data as the maximum number
of channels, which is 64.
Fix empty output size. We're only ever going to fill this with
float samples.
2020-06-16 15:55:32 +02:00
Wim Taymans
f2245ecbb1 doc: small fix 2020-06-16 12:28:22 +02:00
Wim Taymans
cd7a56a71c gst: fix proxy leaks 2020-06-16 11:02:16 +02:00
Wim Taymans
61c1fe546e client-node: fix buffer size calculation
Calculate the size of the buffer as the difference between the first
byte and the last byte. This takes into account the alignment.
2020-06-15 20:44:08 +02:00
Wim Taymans
fd0ebdd74a stream: only set MAPPED flag when mmaped 2020-06-15 17:54:37 +02:00
Wim Taymans
4743a423e8 stream: only remove buffer when added 2020-06-15 17:40:29 +02:00
Wim Taymans
8ecae0785b stream: don't reset flags
Or else we lose the MAPPED flag and we don't unmap (not that it's
a problem because it gets unmapped when we close the fd).
2020-06-15 17:39:33 +02:00
raghu447
9c631842cb libcamera: cleanup unused variables 2020-06-15 17:45:01 +05:30
raghu447
7c05a7f7b4 libcamera: fixed a small leak and double free 2020-06-15 12:02:22 +05:30
Wim Taymans
5778de090f doc: fix some typos 2020-06-13 21:31:32 +02:00
Wim Taymans
5e652612be doc: add tutorial for pw_stream playback 2020-06-13 21:26:21 +02:00
raghu447
40ef322a34 libcamera: Fixed the crash issue when rtkit is enabled. 2020-06-12 12:24:00 +05:30
Wim Taymans
2c70106728 README: fix link 2020-06-12 07:41:52 +02:00
Wim Taymans
e9327daf01 README: add some links 2020-06-12 07:40:28 +02:00
Wim Taymans
85b6d97b21 Improve README 2020-06-11 21:18:32 +02:00
Wim Taymans
cdda6ca329 doc: add index 2020-06-11 16:52:47 +02:00
Wim Taymans
205c4a58f9 doc: fix navigation 2020-06-11 16:38:26 +02:00
Wim Taymans
4d3647acbb doc: add cleanup 2020-06-11 16:36:55 +02:00
Wim Taymans
00ca566b18 doc: cleanups 2020-06-11 16:30:27 +02:00
Wim Taymans
9b245da5c0 docs: add tutorial 3 2020-06-11 16:25:47 +02:00
Wim Taymans
44efab6c31 docs: more tutorial 2020-06-11 15:32:52 +02:00
Wim Taymans
0ee5feab67 doc: add tutorial index 2020-06-11 13:43:29 +02:00
Wim Taymans
0a84a77a21 add index 2020-06-11 13:39:09 +02:00
Wim Taymans
a33fac9f9a Update architecture.md 2020-06-11 11:33:29 +00:00
Wim Taymans
70ce1da29c doc: add some more docs 2020-06-11 13:29:30 +02:00
Wim Taymans
12afb23938 docs: add some more docs 2020-06-11 09:51:32 +02:00
George Kiagiadakis
da9d17e73e bluez5: don't add transport twice in the device transports list
The transport is already added in profile_new_connection(), unless
is_new is TRUE

Apart from being wrong, adding the same node twice in a list also causes
spa_list_foreach() to loop forever...
2020-06-10 18:24:07 +03:00
Wim Taymans
b71efadb7a doc: add some more info 2020-06-10 17:08:12 +02:00
Wim Taymans
d3f29f048f meson: use join_paths to join paths 2020-06-10 13:28:15 +02:00
Wim Taymans
baf11b22d4 meson: use the right config file 2020-06-10 13:24:21 +02:00
Florian Klink
d1162f28ef pipewire.conf.in: use absolute path to pipewire-media-session
So pipewire daemon is able to find pipewire-media-session from the
location it's installed to, even when it's not in $PATH.

For the `pw-ininstalled.sh` and `make run` invocations, provide a
`src/daemon/pipewire-uninstalled.conf` that still uses the relative
path, but isn't installed.
2020-06-10 13:20:25 +02:00
Wim Taymans
b04552b252 0.3.6 2020-06-10 11:53:32 +02:00
Stéphane Cerveau
e7cc0f69e3 libcamera: fix implicit dependency to libdrm
libcamera is depending on libdrm in libcamera_wrapper.cpp but it was
implicitely including the header drm_fourcc.h with libcamera
file pixel_format.h

With this patch, the libcamera plugin should explicitely depends on
libdrm as it needs DRM fourcc and should not depend on multiple
inclusion from libcamera.

Add a FourCC for Motion-JPEG compressed format. This is a temporary
addition until the format gets merged in the upstream kernel.
2020-06-10 09:20:16 +00:00
Wim Taymans
2c8292bef0 docs: add some more info 2020-06-09 17:29:40 +02:00
Wim Taymans
8696ad4480 docs: add some doc about SPA design 2020-06-09 17:08:26 +02:00
Wim Taymans
2b7e6e19dc doc: annotate code block as c 2020-06-09 15:34:02 +02:00
Wim Taymans
9fd6428314 docs: fix some typos 2020-06-09 15:28:26 +02:00
Wim Taymans
014e48c1f1 protocol: add workaround for bad v0 clients
Fix up clients that say they have fixed properties while in fact
they are not. Assume that when there are alternatives, the property
was in fact not fixed.
2020-06-09 13:22:07 +02:00
Wim Taymans
62dd58a604 client: remove busy state from client in resource destroy
When a resource is doing an operation that sets the client in the busy
state, make sure we unblock the client again when the resource is
destroyed before we could complete the operation or else the client
is stuck forever.
2020-06-09 10:59:58 +02:00
Wim Taymans
8f251fc7d4 docs: add some docs about SPA POD 2020-06-09 09:06:07 +02:00
Wim Taymans
a44bea0b6a tests: check cpu flags
Use the support plugin to load the CPU detection API and check
for the right CPU flags before running the test.

Fixes #246
2020-06-09 08:00:00 +02:00
Wim Taymans
f278ded975 example: use thread loop in example 2020-06-08 17:14:36 +02:00
Wim Taymans
180f2b0f20 client-node0: clean up resource 2020-06-08 17:14:36 +02:00
Simon McVittie
b91a718018 man: Add man pages for pw-jack, pw-pulse
Signed-off-by: Simon McVittie <smcv@debian.org>
2020-06-08 13:28:44 +00:00
Wim Taymans
d566c8858c port: don't send reuse_buffer on node again
When we get a reuse_buffer on the input mixer we should find the
linked mixer and send the reuse_buffer to that one, not the node
itself.
2020-06-08 14:19:13 +02:00
Wim Taymans
64fc8dda20 stream: check for NULL context
If a stream was killed, the context is cleared. Disconnecting a killed
stream should not crash but return BADSTATE.
2020-06-08 11:58:32 +02:00
Wim Taymans
65798ca566 context: only set TERMINATED when -EPIPE
Other errors don't cause the connection to terminate.
2020-06-08 11:57:51 +02:00
Wim Taymans
dac60d4e5b avoid some leaks and NULL pointer derefs 2020-06-08 11:15:53 +02:00
Wim Taymans
2fd64f1591 connection: dup and close fds
dup the fd when added to the outgoing buffer and close it againç
when sent. This ensures the fd remains valid in the buffer. A
quick add/remove of memory before a buffer flush could close the
fd before we can send it and then we get a bad fd and disconnect
the client.
2020-06-05 17:36:03 +02:00