• Tim-Philipp Müller's avatar
    pcapparse: fix another regression · f17899a5
    Tim-Philipp Müller authored
    Introduced by c4c9fe60 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.
gstpcapparse.c 17.5 KB