Backport of "rtsp-client: RTP Info when completed_sender" into 1.16
Backport of !68 (merged) "rtsp-client: RTP Info when completed_sender".
Needs manual intervention, cherry-picking failed!
- 7e1edcf1 rtsp-client: RTP Info when completed_sender
Change condition that should be fulfilled regarding RTPInfo. Replace !gst_rtsp_media_is_receive_only with gst_rtsp_media_has_completed_sender. It is more correct to actually look for a sender pipeline that is complete. Only then a RTPInfo should exist.
gst_rtsp_media_is_receive_only gives different answears depending on state of server. If Describe is called wth URL+options for backchannel SDP will give only audio and only backchannel a=sendonly If Describe is called on URL+options that gives both audio and video direction from server to client, pipelines are created. Thus receive_only will return false, even though Setup only would setup backchannel.
RTP-Info is only for outgoing streams. Thus one should look if outgoing streams are complete.