rtsp-client: RTP Info when completed_sender
authorKristofer Bjorkstrom <kristofb@pc36402-1937.se.axis.com>
Mon, 30 Sep 2019 13:13:15 +0000 (15:13 +0200)
committerKristofer Bjorkstrom <kristofb@pc36402-1937.se.axis.com>
Tue, 1 Oct 2019 10:01:26 +0000 (12:01 +0200)
commit7e1edcf1a4eb71fd699a5fef0f810d1e3ef3c278
tree9a11787c6250838c877e69d4c3295f8ef5d10135
parentd7ae39657dc0b40c4344da267d09f35135d7bc40
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.
gst/rtsp-server/rtsp-client.c