stream->frame_meta.ts_aux, stream->frame_meta.td_aux,
stream->frame_meta.seqnum, stream->frame_meta.flags);
+ /* set stream data for camera_attr_get_preview_frame_rotation() and camera_attr_get_preview_frame_meta() */
+ cb_info->stream_data = stream;
+
if (num_buffer_fd == 0 && CAMERA_IS_FD_VALID(tfd[1])) {
/* import tbm data_bo and get virtual address */
if (!__camera_import_tbm_fd(cb_info->bufmgr, tfd[1], &data_bo, &data_bo_handle)) {
(cb_info->user_cb[MUSE_CAMERA_EVENT_TYPE_EXTRA_PREVIEW] && stream->extra_stream_id >= MM_CAMCORDER_VIDEO_STREAM_ID_EXTRA_MIN)) {
camera_create_preview_frame(stream, num_buffer_fd, buffer_bo_handle, &data_bo_handle, &frame);
- /* set stream data for camera_get_preview_frame_rotation() */
- cb_info->stream_data = stream;
-
if (stream->extra_stream_id < MM_CAMCORDER_VIDEO_STREAM_ID_EXTRA_MIN) {
monitoring_info = cb_info->monitoring_info_preview;
__camera_preview_cb_monitoring_info_start(monitoring_info);
}
__camera_preview_cb_monitoring_info_end(monitoring_info);
-
- cb_info->stream_data = NULL;
}
if (stream->extra_stream_id >= MM_CAMCORDER_VIDEO_STREAM_ID_EXTRA_MIN)
}
_PREVIEW_CB_HANDLER_DONE:
+ cb_info->stream_data = NULL;
+
/* send PREVIEW_CB_RETURN message if zero copy buffer is used */
if (num_buffer_fd > 0)
_camera_msg_send(MUSE_CAMERA_API_PREVIEW_CB_RETURN, NULL, cb_info, NULL, 0);