pipewire/src/gst
Wim Taymans 6864ea9830 pinospay: keep buffers around until released
If we are using the original buffer fd without copying it into a temp
file we need to make sure the memory stays alive and is not reused until
all clients are done with it.

To do this, track what fd ids are in the outgoing buffers and ref the
original buffer. We also need to know when a message is sent to a client
and when that client does a release-fd on the fd index. This is done
with some new events on the multisocketsink.

Every time a message is sent to a client we hash the fd index in it and
ref the buffer in a per-client hash table (on the socket). Every time we
receive release-fd we remove the fd index from the hash and unref the
buffer again.

Clients that are killed get their socket removed, which also cleans up
the hashtable and frees the memory again.
2015-12-02 21:03:53 +01:00
..
gstpinos.c Rework pay/depay elements 2015-08-27 16:41:25 +02:00
gstpinosdepay.c More work on wire protocol 2015-08-31 16:47:32 +02:00
gstpinosdepay.h Rework pay/depay elements 2015-08-27 16:41:25 +02:00
gstpinosdeviceprovider.c deviceprovider: change debug message 2015-08-12 11:49:54 +02:00
gstpinosdeviceprovider.h deviceprovider: reorganize the code a little 2015-07-09 17:34:01 +02:00
gstpinospay.c pinospay: keep buffers around until released 2015-12-02 21:03:53 +01:00
gstpinospay.h pinospay: keep buffers around until released 2015-12-02 21:03:53 +01:00
gstpinossink.c More work on wire protocol 2015-08-31 16:47:32 +02:00
gstpinossink.h Improve introspection 2015-07-28 17:05:03 +02:00
gstpinossrc.c pinossrc: slave a clock to the server clock 2015-12-02 20:43:37 +01:00
gstpinossrc.h pinossrc: slave a clock to the server clock 2015-12-02 20:43:37 +01:00
gsttmpfileallocator.c fdpay: use fd allocator 2015-04-17 10:44:03 +02:00
gsttmpfileallocator.h pulsevideo: add gstreamer elements 2015-04-16 19:45:26 +02:00