The defect only belonged to 'src/webrtc_resource.c'.
But similar codes in other files have also been revised.
[Version] 1.1.45
[Issue Type] SVACE
Change-Id: I9e6d201d9de7a060663c941e57b6d3346d1a9a09
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 1.1.44
+Version: 1.1.45
Release: 0
Group: Multimedia/API
License: Apache-2.0
cmdline = g_strdup_printf("/proc/%d/cmdline", pid);
if (!g_file_get_contents(cmdline, &contents, NULL, &error)) {
- LOG_ERROR("error : %s", error->message);
+ LOG_ERROR("error:%s", error ? error->message : "null");
return WEBRTC_ERROR_INVALID_OPERATION;
}
ws_conn = soup_session_websocket_connect_finish(session, res, &error);
if (!ws_conn) {
- LOG_ERROR("failed to soup_session_websocket_connect_finish(), error[%s]", error->message);
+ LOG_ERROR("failed to soup_session_websocket_connect_finish(), error:%s", error ? error->message : "null");
g_error_free(error);
return;
}
_server->thread = g_thread_try_new("signaling-thread", __thread_func, _server, &error);
RET_VAL_IF(_server->thread == NULL, WEBRTC_ERROR_INVALID_OPERATION,
- "failed to g_thread_try_new(), error[%s]", error->message);
+ "failed to g_thread_try_new(), error:%s", error ? error->message : "null");
LOG_INFO("server[%p, thread:%p]", _server, _server->thread);
file_path = g_strdup_printf("/tmp/snapshot_%03u_%ux%u_RGB24.dump", idx, result->width, result->height);
if (!g_file_set_contents(file_path, (char *)result->data, result->size, &error)) {
- LOG_ERROR("failed to g_file_set_contents() for %s, error:%s", file_path, error->message);
+ LOG_ERROR("failed to g_file_set_contents() for %s, error:%s", file_path, error ? error->message : "null");
return;
}
idx, result->width, result->height, __get_format_str((webrtc_snapshot_format_e)target_format), option);
if (!g_file_set_contents(file_path, (char *)result->data, result->size, &error)) {
- LOG_ERROR("failed to g_file_set_contents() for %s, error:%s", file_path, error->message);
+ LOG_ERROR("failed to g_file_set_contents() for %s, error:%s", file_path, error ? error->message : "null");
return;
}
return WEBRTC_ERROR_NONE;
}
-//LCOV_EXCL_STOP
\ No newline at end of file
+//LCOV_EXCL_STOP
generator = json_generator_new();
json_generator_set_root(generator, root);
if (!json_generator_to_file(generator, path, &error))
- LOG_ERROR("failed to json_generator_to_file() for %s, error:%s", path, error ? error->message : "none");
+ LOG_ERROR("failed to json_generator_to_file() for %s, error:%s", path, error ? error->message : "null");
g_object_unref(generator);
json_node_free(root);
full_path = g_strdup_printf("/tmp/%s", file_name);
if (!g_file_set_contents((const gchar *)full_path, (const gchar *)src_buffer, (gssize)size, &error))
- g_print("__file_dump(), failed to g_file_set_contents[%s], error:%s\n", full_path, error ? error->message : "none");
+ g_print("__file_dump(), failed to g_file_set_contents[%s], error:%s\n", full_path, error ? error->message : "null");
else
g_print("__file_dump(), [%s, %d bytes] is ready\n", full_path, size);
}