pcapparse: fix another regression
authorTim-Philipp Müller <tim@centricular.com>
Mon, 15 Jun 2015 22:40:44 +0000 (23:40 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 3 Jul 2015 09:30:22 +0000 (10:30 +0100)
commitf17899a55cff8bf7ab61b4fe565d0f8e81a74751
tree501d9d8c9d20903cf8559ce43d0d713a1484fa30
parent158f8d5b68795e807c3bc5ede2be0b976762e274
pcapparse: fix another regression

Introduced by c4c9fe60b pcapparse: Take buffer directly from the adapter

Using gst_adapter_take_buffer_fast() can lead to buffers that are
made up of multiple memories with the first memory smaller than the
RTP header size, which violates assumptions GstRtpBaseDepayloader
makes, namely that the complete RTP header will be in the first
memory. This leads to such packets being dropped when feeding
them from pcapparse to RTP depayloaders. Use take_buffer() so
we get buffers with a single memory.
gst/pcapparse/gstpcapparse.c