mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +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;
|
||||
GstRTSPMessage response;
|
||||
|
||||
memset (&response, 0, sizeof (response));
|
||||
gst_rtsp_message_init (&response);
|
||||
|
||||
result = gst_rtsp_connection_connect_with_response (conn, timeout, &response);
|
||||
|
||||
gst_rtsp_message_unset (&response);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue