Buffers Stuck When Pausing Live Source with Custom Sink
Hello, I'm having troubles pausing then playing the live source element of a pipeline. The issue is that there are frames that don't make it to the sink when I pause the live source element until after I play it again. Here is my pipeline sans caps filters:
autovideosrc ! x264enc ! customSink
When I change the autovideosrc
's state PLAYING->PAUSED, the pipeline immediately stops, and upon setting state back PAUSED->PLAYING, the first few frames that customSink
receives are the old ones from just before pausing the element.
I've tried several things including ASYNC handling and flushing, and also came across resources suggesting it may involve pull/push configuration of elements or the pipeline clock settings. I've experimented with just about every possible configuration and order I could come up with, and still not getting the desired behavior. Any guidance would be greatly appreciated.