mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
rtspconnection: Properly initialize stack-allocated RTSP message to all-zeroes
This commit is contained in:
parent
5ac65d9e3a
commit
b0c834df1b
1 changed files with 3 additions and 0 deletions
|
@ -1124,11 +1124,14 @@ gst_rtsp_connection_connect (GstRTSPConnection * conn, GTimeVal * timeout)
|
||||||
{
|
{
|
||||||
GstRTSPResult result;
|
GstRTSPResult result;
|
||||||
GstRTSPMessage response;
|
GstRTSPMessage response;
|
||||||
|
|
||||||
|
memset (&response, 0, sizeof (response));
|
||||||
gst_rtsp_message_init (&response);
|
gst_rtsp_message_init (&response);
|
||||||
|
|
||||||
result = gst_rtsp_connection_connect_with_response (conn, timeout, &response);
|
result = gst_rtsp_connection_connect_with_response (conn, timeout, &response);
|
||||||
|
|
||||||
gst_rtsp_message_unset (&response);
|
gst_rtsp_message_unset (&response);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue