gst-interpipe icon indicating copy to clipboard operation
gst-interpipe copied to clipboard

bug: extra buffer copy per interpipesrc-sink pair

Open linus-gates opened this issue 4 years ago • 1 comments

Hello,

I will explain using a following simple example:

  1. run: gst-launch-1.0 audiotestsrc num_buffers=1 ! filesink location=./out
  • out contains a single buffer of size 2048B.
  1. run: gst-launch-1.0 audiotestsrc num_buffers=1 interpipesink name=input_sink forward-eos=true async=false interpipesrc listen-to=input_sink ! filesink location=./out
  • out contains two buffers, that are identical, total file size 4096B (i also splitted the buffers in out with multifilesink and after a CRC check both files identical)

I would expect in this example the output to be the same for both cases but unfortunately it is not happening. This happens for each interpipe src-sink pair in the system, so if i had 2 pairs, i would get extra two buffers in my system.

Thanks !

linus-gates avatar Mar 23 '21 10:03 linus-gates

This is expected behavior from appsink (interpipesink derives from appsink). The preroll sample is always pushed downstream twice.

dzhang28 avatar Nov 28 '22 18:11 dzhang28