gstreamer/gst/gdp
Víctor Manuel Jáquez Leal f6cb16ab8c gdpdepay: don't use allocator if it has custom alloc
gdpdepay element uses the decide_allocation to fetch the downstream
allocator. Nonetheless it is possible that allocate uses a custom
alloc function, which is not usable by gdpdepay, crashing later the
application when the allocater buffer is NULL.

This patch checks for the allocator flags and reset it if the
allocator has a custom alloc function.

https://bugzilla.gnome.org/show_bug.cgi?id=789476
2018-01-31 14:03:36 +01:00
..
dataprotocol.c docs: Port all docstring to gtk-doc markdown 2017-04-12 12:57:57 -03:00
dataprotocol.h gdpdepay: Query for buffer allocator before using default 2016-04-03 11:45:09 +03:00
dp-private.h gdp: add DTS to headers 2014-01-31 23:44:11 -03:00
gstgdp.c Fix FSF address 2012-11-04 00:09:59 +00:00
gstgdpdepay.c gdpdepay: don't use allocator if it has custom alloc 2018-01-31 14:03:36 +01:00
gstgdpdepay.h gdpdepay: Query for buffer allocator before using default 2016-04-03 11:45:09 +03:00
gstgdppay.c docs: Port all docstring to gtk-doc markdown 2017-04-12 12:57:57 -03:00
gstgdppay.h gdppay: refactor a little 2014-12-26 13:44:32 +00:00
Makefile.am Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
meson.build Add support for Meson as alternative/parallel build system 2016-08-20 11:35:54 +01:00
README plugins-bad: Fix example pipelines 2015-12-15 10:30:49 +00:00

Sample pipelines:
- replacing tcpserversink protocol=gdp with gdppay ! tcpserversink:
  - raw audio:
    - server:
      gst-launch-1.0 -v audiotestsrc ! gdppay version=0.2 ! tcpserversink
    - client:
      gst-launch-1.0 -v tcpclientsrc protocol=gdp ! alsasink sync=FALSE

  - vorbis packets:
    - server:
      gst-launch-1.0 -v audiotestsrc ! audioconvert ! vorbisenc ! gdppay version=0.2 ! tcpserversink
    - client:
      gst-launch-1.0 -v tcpclientsrc protocol=gdp ! vorbisdec ! audioconvert ! alsasink sync=FALSE

  - ogg packets:
    - server:
      gst-launch-1.0 -v audiotestsrc ! audioconvert ! vorbisenc ! oggmux ! gdppay version=0.2 ! tcpserversink
    - client:
      gst-launch-1.0 -v tcpclientsrc protocol=gdp ! oggdemux ! vorbisdec ! audioconvert ! alsasink sync=FALSE

  In all the client pipelines, tcpclientsrc protocol=gdp can be replaced with
  tcpclientsrc ! gdpdepay