Name: libmm-camcorder
Summary: Camera and recorder library
-Version: 0.10.211
+Version: 0.10.212
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
int iBitDepth; /**< Bit depth */
int iChannels; /**< audio channels */
char *filename; /**< recorded file name */
- gboolean b_commiting; /**< Is it commiting now? */
+ gboolean b_committing; /**< Is it committing now? */
gboolean bMuxing; /**< whether muxing */
guint64 filesize; /**< current recorded file size */
guint64 max_size; /**< max recording size */
* MMCamcorder information for video(preview/recording) mode
*/
typedef struct {
- gboolean b_commiting; /**< Is it commiting now? */
+ gboolean b_committing; /**< Is it committing now? */
char *filename; /**< recorded filename */
double record_timestamp_ratio; /**< timestamp ratio of video recording for slow/fast motion recording */
double record_motion_rate; /**< motion rate of video recording for slow/fast motion recording */
GstClock *pipe_clock = NULL;
int count = 0;
- if (info->b_commiting) {
+ if (info->b_committing) {
_mmcam_dbg_warn("now on commiting previous file!!(cmd : %d)", cmd);
return MM_ERROR_CAMCORDER_CMD_IS_RUNNING;
}
}
case _MMCamcorder_CMD_CANCEL:
- if (info->b_commiting) {
+ if (info->b_committing) {
_mmcam_dbg_warn("now on commiting previous file!!(cmd : %d)", cmd);
return MM_ERROR_CAMCORDER_CMD_IS_RUNNING;
}
guint64 free_space = 0;
_mmcam_dbg_log("_MMCamcorder_CMD_COMMIT");
- if (info->b_commiting) {
+ if (info->b_committing) {
_mmcam_dbg_warn("now on commiting previous file!!(cmd : %d)", cmd);
return MM_ERROR_CAMCORDER_CMD_IS_RUNNING;
} else {
_mmcam_dbg_log("_MMCamcorder_CMD_COMMIT : start");
- info->b_commiting = TRUE;
+ info->b_committing = TRUE;
}
for (count = 0 ; count <= _MMCAMCORDER_RETRIAL_COUNT ; count++) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
_mmcam_dbg_err("Commit fail, waited 200 ms, but file size is %"G_GUINT64_FORMAT, info->filesize);
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
_mmcam_dbg_warn("Waiting for enough audio frame, re-count[%d], file size is %"G_GUINT64_FORMAT,
if (audioSrc) {
if (gst_element_send_event(audioSrc, gst_event_new_eos()) == FALSE) {
_mmcam_dbg_err("send EOS failed");
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
ret = MM_ERROR_CAMCORDER_INTERNAL;
goto _ERR_CAMCORDER_AUDIO_COMMAND;
}
if (_mmcamcorder_get_state((MMHandleType)hcamcorder) == MM_CAMCORDER_STATE_PAUSED) {
ret = _mmcamcorder_gst_set_state(handle, pipeline, GST_STATE_PLAYING);
if (ret != MM_ERROR_NONE) {
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
goto _ERR_CAMCORDER_AUDIO_COMMAND;
}
}
} else {
_mmcam_dbg_err("No audio stream source");
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
ret = MM_ERROR_CAMCORDER_INTERNAL;
goto _ERR_CAMCORDER_AUDIO_COMMAND;
}
/* wait until finishing EOS */
_mmcam_dbg_log("Start to wait EOS");
if ((ret = _mmcamcorder_get_eos_message(handle)) != MM_ERROR_NONE) {
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
goto _ERR_CAMCORDER_AUDIO_COMMAND;
}
break;
_mmcam_dbg_err("_MMCamcorder_CMD_COMMIT : end");
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
return TRUE;
}
}
/* send message for recording time and recorded file size */
- if (audioinfo->b_commiting == FALSE) {
+ if (audioinfo->b_committing == FALSE) {
audioinfo->filesize += buffer_size;
msg.id = MM_MESSAGE_CAMCORDER_RECORDING_STATUS;
if (sc->is_modified_rate)
MMCAMCORDER_G_OBJECT_SET(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst, "high-speed-fps", fps);
- /* Set basic infomation of videosrc element */
+ /* Set basic information of videosrc element */
_mmcamcorder_conf_set_value_element_property(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst, VideosrcElement);
/* Set video device index */
MMCAMCORDER_G_OBJECT_SET(sc->encode_element[_MMCAMCORDER_AUDIOSRC_QUE].gst, "max-size-bytes", 0);
MMCAMCORDER_G_OBJECT_SET(sc->encode_element[_MMCAMCORDER_AUDIOSRC_QUE].gst, "max-size-time", 0);
- /* Set basic infomation */
+ /* Set basic information */
if (a_enc != MM_AUDIO_CODEC_VORBIS) {
int depth = 0;
const gchar* format_name = NULL;
if (hcamcorder->error_code == MM_ERROR_NONE) {
if (hcamcorder->type != MM_CAMCORDER_MODE_AUDIO) {
mmf_return_val_if_fail(sc->info_video, MM_ERROR_CAMCORDER_NOT_INITIALIZED);
- if (sc->info_video->b_commiting)
+ if (sc->info_video->b_committing)
_mmcamcorder_video_handle_eos((MMHandleType)hcamcorder);
} else {
mmf_return_val_if_fail(sc->info_audio, MM_ERROR_CAMCORDER_NOT_INITIALIZED);
- if (sc->info_audio->b_commiting)
+ if (sc->info_audio->b_committing)
_mmcamcorder_audio_handle_eos((MMHandleType)hcamcorder);
}
} else {
sc = MMF_CAMCORDER_SUBCONTEXT(handle);
if (!sc) {
- _mmcam_dbg_log("sub context is not initailized");
+ _mmcam_dbg_log("sub context is not initialized");
return TRUE;
}
static GstBusSyncReply __mmcamcorder_gst_handle_sync_others_error(mmf_camcorder_t *hcamcorder, gint err_code)
{
- gboolean b_commiting = FALSE;
+ gboolean b_committing = FALSE;
storage_state_e storage_state = STORAGE_STATE_UNMOUNTABLE;
_MMCamcorderMsgItem msg;
_MMCamcorderSubContext *sc = NULL;
if (hcamcorder->type != MM_CAMCORDER_MODE_AUDIO) {
mmf_return_val_if_fail(sc->info_video, GST_BUS_PASS);
- b_commiting = sc->info_video->b_commiting;
+ b_committing = sc->info_video->b_committing;
} else {
mmf_return_val_if_fail(sc->info_audio, GST_BUS_PASS);
- b_commiting = sc->info_audio->b_commiting;
+ b_committing = sc->info_audio->b_committing;
}
_MMCAMCORDER_LOCK(hcamcorder);
break;
}
- if (b_commiting) {
+ if (b_committing) {
_MMCAMCORDER_SIGNAL(hcamcorder);
_MMCAMCORDER_UNLOCK(hcamcorder);
} else {
if (str_value && str_val_len > 0) {
char *description = strdup(str_value);
- _mmcam_dbg_log("desctiption [%s]", str_value);
+ _mmcam_dbg_log("description [%s]", str_value);
if (description) {
ret = mm_exif_set_add_entry(ed, EXIF_IFD_0, EXIF_TAG_IMAGE_DESCRIPTION,
if (irange != NULL) {
mm_camcorder_get_attributes(handle, NULL, MMCAM_FILTER_CONTRAST, &value, NULL);
- _mmcam_dbg_log("CONTRAST currentt [%d], default [%d]", value, irange->default_value);
+ _mmcam_dbg_log("CONTRAST current [%d], default [%d]", value, irange->default_value);
if (value == irange->default_value)
level = MM_VALUE_NORMAL;
ret = _mmcamcorder_gst_set_state(handle, sc->encode_element[_MMCAMCORDER_ENCODE_MAIN_PIPE].gst, GST_STATE_NULL);
if (ret != MM_ERROR_NONE) {
- _mmcam_dbg_err("Faile to change encode main pipeline [0x%x]", ret);
+ _mmcam_dbg_err("Failed to change encode main pipeline [0x%x]", ret);
return ret;
}
break;
case _MMCamcorder_CMD_PAUSE:
{
- if (info->b_commiting) {
- _mmcam_dbg_warn("now on commiting previous file!!(command : %d)", command);
+ if (info->b_committing) {
+ _mmcam_dbg_warn("now on committing previous file!!(command : %d)", command);
return MM_ERROR_CAMCORDER_CMD_IS_RUNNING;
}
}
case _MMCamcorder_CMD_CANCEL:
{
- if (info->b_commiting) {
- _mmcam_dbg_warn("now on commiting previous file!!(command : %d)", command);
+ if (info->b_committing) {
+ _mmcam_dbg_warn("now on committing previous file!!(command : %d)", command);
return MM_ERROR_CAMCORDER_CMD_IS_RUNNING;
}
{
guint64 free_space;
- if (info->b_commiting) {
- _mmcam_dbg_err("now on commiting previous file!!(command : %d)", command);
+ if (info->b_committing) {
+ _mmcam_dbg_err("now on committing previous file!!(command : %d)", command);
return MM_ERROR_CAMCORDER_CMD_IS_RUNNING;
} else {
_mmcam_dbg_log("_MMCamcorder_CMD_COMMIT : start");
- info->b_commiting = TRUE;
+ info->b_committing = TRUE;
sc->bget_eos = FALSE;
}
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME) {
_mmcam_dbg_warn("video frames are enough. keep going...");
} else {
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
}
} else {
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME && info->audio_frame_count) {
_mmcam_dbg_warn("video/audio frames are enough. keep going...");
} else {
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
}
_mmcam_dbg_warn("VIDEO: send eos to appsrc done");
} else {
_mmcam_dbg_err("VIDEO: send EOS failed");
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
ret = MM_ERROR_CAMCORDER_INTERNAL;
goto _ERR_CAMCORDER_VIDEO_COMMAND;
}
} else {
_mmcam_dbg_err("No video stream source");
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
ret = MM_ERROR_CAMCORDER_INTERNAL;
goto _ERR_CAMCORDER_VIDEO_COMMAND;
}
_mmcam_dbg_warn("AUDIO: send eos to audiosrc done");
} else {
_mmcam_dbg_err("AUDIO: send EOS failed");
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
ret = MM_ERROR_CAMCORDER_INTERNAL;
goto _ERR_CAMCORDER_VIDEO_COMMAND;
}
_mmcam_dbg_log("Start to wait EOS");
ret = _mmcamcorder_get_eos_message(handle);
if (ret != MM_ERROR_NONE) {
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
goto _ERR_CAMCORDER_VIDEO_COMMAND;
}
info->video_frame_count = 0;
info->audio_frame_count = 0;
info->filesize = 0;
- info->b_commiting = FALSE;
+ info->b_committing = FALSE;
/* check recording stop sound */
_mmcamcorder_sound_solo_play_wait(handle);
/* check free space */
ret = _mmcamcorder_get_freespace(hcamcorder->storage_info.type, &free_space);
if (ret != 0) {
- _mmcam_dbg_err("Error occured. [%d]", ret);
+ _mmcam_dbg_err("Error occurred. [%d]", ret);
if (sc->ferror_count == 2 && sc->ferror_send == FALSE) {
sc->ferror_send = TRUE;