How to detect udpsrc recovery after timeout?

My question is more of a design question. I understand that udpsrc has a timeout property, and it will post a message to the GST Bus on timeout. However, how can I detect if the udpsrc recovers?

My goal is to stream video from the livesource when there is data coming in, and then switch to a still image when there is no video, and then switch back to the livesource when it is available again. I can’t wrap my head around how to do that recovery. Any ideas?

Hi Mercy,
I think this post might be on the wrong forum page. This page is dedicated to NVIDIA CloudXR SDK support if this issue is with gstreamer perhaps the DeepStream SDK page is a better place to try this query? DeepStream SDK - NVIDIA Developer Forums

Sorry I couldn’t be of more help,
-Arjun