g_autoptr(GMutexLocker) locker = NULL;
RET_VAL_IF(webrtc == NULL, FALSE, "webrtc is NULL");
- RET_VAL_IF(webrtc->gst.pipeline == NULL, FALSE, "pipeline is NULL");
+ RET_VAL_IF(webrtc->gst.pipeline == NULL, FALSE, "webrtc[%p]->gst.pipeline is NULL", webrtc);
if (message == NULL) {
- LOG_DEBUG("message is null");
+ LOG_DEBUG("webrtc[%p] message is null", webrtc);
return TRUE;
}
webrtc_error_e error = WEBRTC_ERROR_INVALID_OPERATION;
gst_message_parse_error(message, &err, NULL);
- LOG_ERROR("Error[from %s]: message[%s], code[%d]",
- GST_OBJECT_NAME(GST_OBJECT_CAST(GST_ELEMENT(GST_MESSAGE_SRC(message)))), err->message, err->code);
+ LOG_ERROR("webrtc[%p] Error[from %s]: message[%s], code[%d]",
+ webrtc, GST_OBJECT_NAME(GST_OBJECT_CAST(GST_ELEMENT(GST_MESSAGE_SRC(message)))),
+ err->message, err->code);
if (err->domain == GST_RESOURCE_ERROR)
error = WEBRTC_ERROR_RESOURCE_FAILED;
gst_element_state_get_name(gst_state_old), gst_element_state_get_name(gst_state_new),
gst_element_state_get_name(gst_state_pending));
- LOG_INFO("GST_MESSAGE_STATE_CHANGED: %s", state_transition_name);
+ LOG_INFO("webrtc[%p] GST_MESSAGE_STATE_CHANGED: %s", webrtc, state_transition_name);
g_free(state_transition_name);
locker = g_mutex_locker_new(&webrtc->mutex);
if (GST_MESSAGE_SRC(message) != GST_OBJECT(webrtc->gst.pipeline))
return TRUE;
- LOG_INFO("GST_MESSAGE_ASYNC_DONE");
+ LOG_INFO("webrtc[%p] GST_MESSAGE_ASYNC_DONE", webrtc);
break;
case GST_MESSAGE_EOS:
- LOG_INFO("GST_MESSAGE_EOS end-of-stream");
+ LOG_INFO("webrtc[%p] GST_MESSAGE_EOS end-of-stream", webrtc);
break;
default: