Drop frames when GStreamer pipeline is in GST_STATE_PAUSED state (uridecodebin3 element)

60 Views Asked by At

I am using GStreamer uridecodebin3/source to decode RTSP stream, and sometimes I want to pause it (just to free my CPU cycles when stream is not visible in my app). Changing it's state to GST_STATE_PAUSED and again to GST_STATE_PLAYING after some amount of time causes rendering frames started from the time point when it was paused. I don't want that behaviour: I just want to render "current" frames. Can I configure it in such way?

I know I can just ignore the produced frames but it will not free my CPU from decoding it.

0

There are 0 best solutions below