Adding Black or Blank Frames to pipeline if input device has no signal.

Adding Black or Blank Frames to pipeline if input device has no signal.

Hi All,
We are working on a live video test automation tool.
We are using BlackMagic Intensity Pro 4k card to capture the live video from
source.

Thing is we have a sanario's in which we have to reboot the source device or
change the device. Once we take out the HDMI cable from source we are stuck
in to situations:
1. decklinkvideosrc outputs "no signal" message.
2. It gives EOS and gstreamer Thread kills the process.

We want to be able to keep the pipelines running even if there is "no
signal" or "EOS".
One solution that i expect is to add blank buffers to the pipeline on "no
signal", as we are using appsink and appsrc to extract buffers from the
pipeline.

How can we achieve this without gstreamer pipelines getting stopped.
I have been able to add blank buffers to the running pipelines on "no
signal". Thing is ones the signal comes back the pts on buffers starts from
zero again and ends up stopping the streams, and recordings, and even
sometimes giving EOS on the pipeline.

Really need a solid solution to keep these pipelines running and make input
devices kind of hot swapable.