Adding pads to dynamic GstRTSPMedia bin during playback
I have a camera that delivers h.264 video and A-law audio data over
RTSP. The strange thing is that the audio data does not seem to actually
exist, or at least is not delivered right from the start. Either way, I
see that the rtspsrc no-more-pads callback is never called. I want to
forward this RTSP stream through a GstRTSPServer instance. To that end,
I create a dynamic payloader bin called dynpay0 and add source ghostpads
to it for each one of the rtspsrc pads. I use its pad-added callback for
that. And in my no-more-pads callback, I call gst_element_no_more_pads()
on the dynamic payloader bin.
To keep my application robust, I would prefer not to have to rely on the
no-more-pads callback, since there could be more cameras that have a
similar problem. Is it therefore possible to add extra pads later to the
RTSP media's dynamic payloader? Or how would you handle this problem?