GST_ELEMENT_WARNING (src, RESOURCE, READ, (NULL),
("The server closed the connection."));
src->connected = FALSE;
+ gst_rtsp_message_unset (&message);
return GST_FLOW_UNEXPECTED;
}
interrupt:
{
gboolean restart = FALSE;
GstRTSPResult res;
+ GstRTSPMessage message = { 0 };
GST_OBJECT_LOCK (src);
if (src->loop_cmd == CMD_STOP)
GST_OBJECT_UNLOCK (src);
while (TRUE) {
- GstRTSPMessage message = { 0 };
GTimeVal tv_timeout;
/* get the next timeout interval */
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
("Could not handle server message. (%s)", str));
g_free (str);
+ gst_rtsp_message_unset (&message);
return GST_FLOW_ERROR;
}
connect_error:
GST_ELEMENT_WARNING (src, RESOURCE, READ, (NULL),
("The server closed the connection."));
src->connected = FALSE;
+ gst_rtsp_message_unset (&message);
return GST_FLOW_UNEXPECTED;
}
}
handle_request_failed:
{
/* ERROR was posted */
+ gst_rtsp_message_unset (response);
return res;
}
server_eof:
GST_DEBUG_OBJECT (src, "we got an eof from the server");
GST_ELEMENT_WARNING (src, RESOURCE, READ, (NULL),
("The server closed the connection."));
+ gst_rtsp_message_unset (response);
return GST_FLOW_UNEXPECTED;
}
}