mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
d790ba9a06
Add function to calculate a payload CRC across multiple memories so we don't have to merge buffers with multiple memories just to calculate the CRC. Also make CRC calculation function static, since it's not used outside dataprotocol.h and move special-casing of length = 0 -> CRC = 0 into CRC function (from caller). Perhaps more importantly, since payload CRC is off by default: don't map buffer (and possibly merge memories in the process) if we are not going to use it to calculate a CRC anyway. |
||
---|---|---|
.. | ||
dataprotocol.c | ||
dataprotocol.h | ||
dp-private.h | ||
gstgdp.c | ||
gstgdpdepay.c | ||
gstgdpdepay.h | ||
gstgdppay.c | ||
gstgdppay.h | ||
Makefile.am | ||
README |
Sample pipelines: - replacing tcpserversink protocol=gdp with gdppay ! tcpserversink: - raw audio: - server: gst-launch -v audiotestsrc ! gdppay version=0.2 ! tcpserversink - client: gst-launch -v tcpclientsrc protocol=gdp ! alsasink sync=FALSE - vorbis packets: - server: gst-launch -v audiotestsrc ! audioconvert ! vorbisenc ! gdppay version=0.2 ! tcpserversink - client: gst-launch -v tcpclientsrc protocol=gdp ! vorbisdec ! audioconvert ! alsasink sync=FALSE - ogg packets: - server: gst-launch -v audiotestsrc ! audioconvert ! vorbisenc ! oggmux ! gdppay version=0.2 ! tcpserversink - client: gst-launch -v tcpclientsrc protocol=gdp ! oggdemux ! vorbisdec ! audioconvert ! alsasink sync=FALSE In all the client pipelines, tcpclientsrc protocol=gdp can be replaced with tcpclientsrc ! gdpdepay