mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rtsp: clear the entire builder structure
And use structure instead of variable with sizeof when clearing the rtsp message structure, for clarity.
This commit is contained in:
parent
dd9f077177
commit
dfe96ce618
2 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@ static void
|
|||
build_reset (GstRTSPBuilder * builder)
|
||||
{
|
||||
g_free (builder->body_data);
|
||||
memset (builder, 0, sizeof (builder));
|
||||
memset (builder, 0, sizeof (GstRTSPBuilder));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -463,7 +463,7 @@ gst_rtsp_message_unset (GstRTSPMessage * msg)
|
|||
}
|
||||
g_free (msg->body);
|
||||
|
||||
memset (msg, 0, sizeof *msg);
|
||||
memset (msg, 0, sizeof (GstRTSPMessage));
|
||||
|
||||
return GST_RTSP_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue