g_string_append_printf (msglength, "%d", msglen);
GST_DEBUG ("M3 server side message body: %s", msg);
- /* add content-length type */
- res =
- gst_rtsp_message_add_header (request, GST_RTSP_HDR_CONTENT_LENGTH,
- g_string_free (msglength, FALSE));
- if (res != GST_RTSP_OK) {
- GST_ERROR_OBJECT (client, "Failed to add header to rtsp message...");
- goto error;
- }
-
res = gst_rtsp_message_set_body (request, (guint8 *) msg, msglen);
if (res != GST_RTSP_OK) {
- GST_ERROR_OBJECT (client, "Failed to add header to rtsp message...");
+ GST_ERROR_OBJECT (client, "Failed to set body data to rtsp message...");
goto error;
}
g_string_append_printf (msglength, "%d", msglen);
GST_DEBUG ("M4 server side message body: %s", msg);
- /* add content-length type */
- res =
- gst_rtsp_message_add_header (request, GST_RTSP_HDR_CONTENT_LENGTH,
- g_string_free (msglength, FALSE));
- if (res != GST_RTSP_OK) {
- GST_ERROR_OBJECT (client, "Failed to add header to rtsp message...");
- goto error;
- }
-
res = gst_rtsp_message_set_body (request, (guint8 *) msg, msglen);
if (res != GST_RTSP_OK) {
- GST_ERROR_OBJECT (client, "Failed to add header to rtsp message...");
+ GST_ERROR_OBJECT (client, "Failed to set body data to rtsp message...");
goto error;
}