mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
7c7920e0e2
Improve GstSegment, rename some fields. The idea is to have the GstSegment structure represent the timing structure of the buffers as they are generated by the source or demuxer element. gst_segment_set_seek() -> gst_segment_do_seek() Rename the NEWSEGMENT event to SEGMENT. Make parsing of the SEGMENT event into a GstSegment structure. Pass a GstSegment structure when making a new SEGMENT event. This allows us to pass the timing info directly to the next element. No accumulation is needed in the receiving element, all the info is inside the element. Remove gst_segment_set_newsegment(): This function as used to accumulate segments received from upstream, which is now not needed anymore because the segment event contains the complete timing information. |
||
---|---|---|
.. | ||
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