rtsp-stream: fixed segmenation fault in _get_server_port()
authorPatricia Muscalu <patricia@axis.com>
Mon, 9 Jan 2017 13:12:05 +0000 (14:12 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 9 Jan 2017 13:27:40 +0000 (15:27 +0200)
commitf47e6ab9f69ec1c77f8875ca41ee5ff268ab06ab
tree698bd0e0564489defc103ccdc9cb68493ad8e8db
parentb27e7c6b5bc7b5ab23ef5d833bd413ce7841db8b
rtsp-stream: fixed segmenation fault in _get_server_port()

Calling function gst_rtsp_stream_get_server_port() results in
segmenation fault in the RTP/RTSP/TCP case.
Port that the server will use to receive RTCP makes only
sense in the UDP case, however the function should handle
the TCP case in a nicer way.

https://bugzilla.gnome.org/show_bug.cgi?id=776345
gst/rtsp-server/rtsp-stream.c
tests/check/gst/stream.c