Change-Id: Ibe9862269e68a493d09754a633ccce8106df7905
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
{
int ret = MM_ERROR_NONE;
recorder_s *handle = (recorder_s*)recorder;
{
int ret = MM_ERROR_NONE;
recorder_s *handle = (recorder_s*)recorder;
- recorder_state_e state;
+ recorder_state_e state = RECORDER_STATE_NONE;
if (handle == NULL) {
LOGE("NULL pointer handle");
return RECORDER_ERROR_INVALID_PARAMETER;
}
if (handle == NULL) {
LOGE("NULL pointer handle");
return RECORDER_ERROR_INVALID_PARAMETER;
}
if (handle->camera_device_count == 0) {
LOGE("RECORDER_ERROR_NOT_SUPPORTED");
return RECORDER_ERROR_NOT_SUPPORTED;
}
if (handle->camera_device_count == 0) {
LOGE("RECORDER_ERROR_NOT_SUPPORTED");
return RECORDER_ERROR_NOT_SUPPORTED;
}
legacy_recorder_get_state(recorder, &state);
if (state > RECORDER_STATE_READY) {
LOGE("RECORDER_ERROR_INVALID_STATE (state:%d)", state);
legacy_recorder_get_state(recorder, &state);
if (state > RECORDER_STATE_READY) {
LOGE("RECORDER_ERROR_INVALID_STATE (state:%d)", state);
MM_VIDEO_CODEC_THEORA /* RECORDER_VIDEO_CODEC_THEORA */
};
recorder_s *handle = (recorder_s *)recorder;
MM_VIDEO_CODEC_THEORA /* RECORDER_VIDEO_CODEC_THEORA */
};
recorder_s *handle = (recorder_s *)recorder;
+ recorder_state_e state = RECORDER_STATE_NONE;
if (handle == NULL) {
LOGE("handle is NULL");
if (handle == NULL) {
LOGE("handle is NULL");
return RECORDER_ERROR_INVALID_PARAMETER;
}
return RECORDER_ERROR_INVALID_PARAMETER;
}
+ legacy_recorder_get_state(recorder, &state);
+ if (state > RECORDER_STATE_READY) {
+ LOGE("RECORDER_ERROR_INVALID_STATE (state:%d)", state);
+ return RECORDER_ERROR_INVALID_STATE;
+ }
+
ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
MMCAM_VIDEO_ENCODER, video_table[codec],
NULL);
ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
MMCAM_VIDEO_ENCODER, video_table[codec],
NULL);
Name: mmsvc-recorder
Summary: A Recorder module for muse server
Name: mmsvc-recorder
Summary: A Recorder module for muse server
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0