_D("app_id(%s), inst_id(%s), pid(%d), serial(%u)",
app_id, inst_id, pid, serial);
- if (broker->pre_context) {
- __check_pre_context(broker);
+ if (!broker->pre_context) {
+ _W("Previous context is nullptr");
return;
}
- if (broker->context) {
- frame_context_get_pid(broker->context, &ctx_pid);
- frame_context_get_serial(broker->context, &ctx_serial);
- if (ctx_pid == pid && ctx_serial == serial) {
- _D("Frame context already exists");
- return;
- }
+ __check_pre_context(broker);
+
+ frame_context_get_pid(broker->context, &ctx_pid);
+ frame_context_get_serial(broker->context, &ctx_serial);
+ if (ctx_pid == pid && ctx_serial == serial) {
+ _D("Frame context already exists");
+ return;
}
ret = frame_context_create(broker, app_id, inst_id, pid, serial,
if (handle->state != FRAME_CONTEXT_STATE_NONE)
return;
+ _W("handle(%p)", handle);
handle->callback.create(handle, handle->user_data);
handle->state = FRAME_CONTEXT_STATE_CREATED;
}
frame_context_set_frame(handle, frame);
if (handle->state == FRAME_CONTEXT_STATE_RESUMED) {
+ _W("[__UPDATE__] handle(%p), frame(%p)", handle, frame);
handle->callback.update(handle, frame, handle->user_data);
return;
}
handle->state != FRAME_CONTEXT_STATE_PAUSED)
return;
+ _W("[__RESUME__] handle(%p), frame(%p)", handle, frame);
handle->callback.resume(handle, frame, handle->user_data);
handle->state = FRAME_CONTEXT_STATE_RESUMED;
}
if (handle->state != FRAME_CONTEXT_STATE_RESUMED)
return;
+ _W("handle(%p)", handle);
handle->callback.pause(handle, handle->user_data);
handle->state = FRAME_CONTEXT_STATE_PAUSED;
}
if (handle->state == FRAME_CONTEXT_STATE_NONE)
return;
+ _W("handle(%p)", handle);
handle->callback.destroy(handle, handle->user_data);
handle->state = FRAME_CONTEXT_STATE_DESTROYED;
}
return;
}
+ _W("handle(%p), error(%d)", handle, error);
handle->callback.error(handle, error, handle->user_data);
}