uint32_t bo_format = 0;
int bo_num = 0;
tbm_fd tfd[4];
- int key[4];
+ intptr_t key = 0;
tbm_surface_info_s sinfo;
int i = 0;
char *surface_info = (char *)&sinfo;
memset(&sinfo, 0, sizeof(tbm_surface_info_s));
memset(tfd, INVALID_DEFAULT_VALUE, sizeof(tfd));
- memset(key, INVALID_DEFAULT_VALUE, sizeof(key));
muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
/* check bo */
for (i = 0, bo_num = 0; i < BUFFER_MAX_PLANE_NUM; i++) {
if (video_stream->bo[i]) {
- key[i] = tbm_bo_export(video_stream->bo[i]); /* FIXME: will be exchanged to the unique index */
tfd[i] = tbm_bo_export_fd(video_stream->bo[i]);
if (i == 0 && tfd[0] <= INVALID_DEFAULT_VALUE) {
goto ERROR;
}
+ key = (intptr_t)(video_stream->bo[0]);
+
/* get format info */
ret = __mplayer_get_tbm_surface_format(video_stream->format, &bo_format);
ret |= __mplayer_get_media_packet_mimetype(video_stream->format, &mimetype);
msg_len = (surface_info_size / sizeof(int) + (surface_info_size % sizeof(int) ? 1 : 0));
PLAYER_SEND_EVENT_MSG_WITH_TFDS(api, ev, module, tfd,
- MUSE_TYPE_INT, "key[0]", key[0], MUSE_TYPE_INT, "key[1]", key[1],
- MUSE_TYPE_INT, "key[2]", key[2], MUSE_TYPE_INT, "key[3]", key[3],
- MUSE_TYPE_POINTER, "v_data", v_data, MUSE_TYPE_INT, "mimetype", (int)mimetype,
- MUSE_TYPE_INT64, "pts", (INT64)pts, MUSE_TYPE_INT, "orientation", orientation,
- MUSE_TYPE_ARRAY, "surface_info", msg_len, surface_info);
+ MUSE_TYPE_POINTER, "key", key, MUSE_TYPE_POINTER, "v_data", v_data,
+ MUSE_TYPE_INT, "mimetype", (int)mimetype, MUSE_TYPE_INT64, "pts", (INT64)pts,
+ MUSE_TYPE_INT, "orientation", orientation, MUSE_TYPE_ARRAY, "surface_info", msg_len, surface_info);
ret_val = true;
ERROR: