fallbackswitch: should handle buffers with no PTS
I have something like this: webrtcbin ! decodebin (video) ! fallbackswitch
. It works well enough but I sometimes get this stopping the pipeline (FlowError::Error
):
0:00:40.633708735 914332 0x5616fed8b700 ERROR fallbackswitch imp.rs:1100:gstfallbackswitch::fallbackswitch::imp:<fallbackswitch1> Only buffers with PTS supported
0:00:40.633788198 914332 0x5616fed8b700 ERROR fallbackswitch imp.rs:235:gstfallbackswitch::fallbackswitch::imp:<fallbackswitch1:sink> Only buffers with PTS supported
That seems to be because:
-
rtpjitterbuffer
sets backwards timestamps to the same timestamp. -
h264parse
unsets thepts
of the second buffer. - this second buffer is decoded to a frame without
pts
and reachesfallbackswitch
.
It would be good that those buffers are handled somehow. Could they be pushed directly downstream instead?