if (sc->encode_element[_MMCAMCORDER_ENCODE_MAIN_PIPE].gst) {
ret = _mmcamcorder_gst_set_state(handle, sc->encode_element[_MMCAMCORDER_ENCODE_MAIN_PIPE].gst, GST_STATE_NULL);
if (ret != MM_ERROR_NONE) {
- MMCAM_LOG_ERROR("Faile to change encode main pipeline state [0x%x]", ret);
+ MMCAM_LOG_ERROR("Failed to change encode main pipeline state [0x%x]", ret);
return ret;
}
This is a typical problem of unref. Even though I unref bin here, it takes much time to finalize each elements.
So I clean handles first, make them unref later. Audio recording, however, isn't needed this process.
It's because the pipeline of audio recording destroys at the same time,
- and '_mmcamcorder_element_release_noti' will perfom removing handle.
+ and '_mmcamcorder_element_release_noti' will perform removing handle.
*/
_mmcamcorder_remove_element_handle(handle, (void *)sc->encode_element, _MMCAMCORDER_AUDIOSRC_BIN, _MMCAMCORDER_AUDIOSRC_VOL);
This is a typical problem of unref. Even though I unref bin here, it takes much time to finalize each elements.
So I clean handles first, make them unref later. Audio recording, however, isn't needed this process.
It's because the pipeline of audio recording destroys at the same time,
- and '_mmcamcorder_element_release_noti' will perfom removing handle.
+ and '_mmcamcorder_element_release_noti' will perform removing handle.
*/
/* _mmcamcorder_remove_element_handle(handle, (void *)sc->encode_element,
_MMCAMCORDER_ENCODE_MAIN_PIPE, _MMCAMCORDER_ENCSINK_SINK); */
"PassFirstVideoFrame",
&(sc->pass_first_vframe));
- MMCAM_LOG_INFO("Drop video frame count[%d], Pass fisrt video frame count[%d]",
+ MMCAM_LOG_INFO("Drop video frame count[%d], Pass first video frame count[%d]",
sc->drop_vframe, sc->pass_first_vframe);
info->record_drop_count = (guint)motion_rate;