rtp: Introduce pa_rtsp_exec_ready()
authorHajime Fujita <crisp.fujita@nifty.com>
Mon, 1 Feb 2016 04:16:05 +0000 (22:16 -0600)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 19 Jan 2017 00:56:53 +0000 (02:56 +0200)
commit19873dff0acf9e204066458e7ab465fba759142d
tree9504e092b62844bfbf64e50b789c0208a116dc10
parent60a1c275170a250e1c128024e6668481047e5c64
rtp: Introduce pa_rtsp_exec_ready()

In the current RTSP implementation, there is a vulnerable window
between the RTSP object creation and the URL initialization.
If any RTSP command is issued during this period, it will lead to
crash by assertion violation.

This patch introduces pa_rtsp_exec_ready(), which returns if it is
safe to issue RTSP commands.

Reviewed-by: Anton Lundin <glance@acc.umu.se>
src/modules/rtp/rtsp_client.c
src/modules/rtp/rtsp_client.h