Fix typo - camcroder -> camcorder 52/42352/1 accepted/tizen/mobile/20150630.002244 accepted/tizen/tv/20150630.002259 accepted/tizen/wearable/20150630.002310 submit/tizen/20150629.110807
authorJeongmo Yang <jm80.yang@samsung.com>
Fri, 26 Jun 2015 09:35:46 +0000 (18:35 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 26 Jun 2015 09:35:46 +0000 (18:35 +0900)
Change-Id: Ie0e1e7ba92019a622d1c02dfeb8958b13c1b2294
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/include/mm_camcorder_util.h
src/mm_camcorder_audiorec.c
src/mm_camcorder_internal.c
src/mm_camcorder_util.c
src/mm_camcorder_videorec.c

index 370028ea8da3b4993d1445509346cd656c17cbd5..d1ec7d2782239623e624a858cc064cf8e60caf36 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.1
+Version:    0.10.2
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 7a33691ac3a884dcf96a08ac2a9ddbfe57ab1973..e2a89f6e4ee788967e79c1dd2572e1412df1ffc9 100644 (file)
@@ -135,7 +135,7 @@ do { \
        msg.id = msg_id;\
        msg.param.code = msg_code;\
        _mmcam_dbg_log("msg id : %x, code : %x", msg_id, msg_code);\
-       _mmcamcroder_send_message((MMHandleType)handle, &msg);\
+       _mmcamcorder_send_message((MMHandleType)handle, &msg);\
 }
 
 
@@ -208,9 +208,9 @@ gboolean _mmcamcorder_add_elements_to_bin(GstBin *bin, GList *element_list);
 gboolean _mmcamcorder_link_elements(GList *element_list);
 
 /* Message */
-gboolean _mmcamcroder_msg_callback(void *data);
-gboolean _mmcamcroder_send_message(MMHandleType handle, _MMCamcorderMsgItem *data);
-void _mmcamcroder_remove_message_all(MMHandleType handle);
+gboolean _mmcamcorder_msg_callback(void *data);
+gboolean _mmcamcorder_send_message(MMHandleType handle, _MMCamcorderMsgItem *data);
+void _mmcamcorder_remove_message_all(MMHandleType handle);
 
 /* Pixel format */
 int _mmcamcorder_get_pixel_format(GstCaps *pad);
index 4bb2253970cb93efa6901f9f5a8c18ade938385e..5a3e823acd6bd7ee29de05ac284aef865ddb5e35 100644 (file)
@@ -666,7 +666,7 @@ int _mmcamcorder_audio_handle_eos(MMHandleType handle)
        report->recording_filename = strdup(info->filename);
        msg.param.data= report;
 
-       _mmcamcroder_send_message(handle, &msg);
+       _mmcamcorder_send_message(handle, &msg);
 
        if (info->bMuxing) {
                MMCAMCORDER_G_OBJECT_SET(sc->encode_element[_MMCAMCORDER_ENCSINK_ENCBIN].gst, "block", FALSE);
@@ -789,7 +789,7 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_voicerecorder(GstPad *pad
 
        msg.id = MM_MESSAGE_CAMCORDER_CURRENT_VOLUME;
        msg.param.rec_volume_dB = curdcb;
-       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
        /* CALL audio stream callback */
        if ((hcamcorder->astream_cb) && buffer && mapinfo.data && mapinfo.size > 0)
@@ -912,7 +912,7 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_record(GstPad *pad, GstPa
                                } else {
                                        msg.param.code = MM_ERROR_FILE_READ;
                                }
-                               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                        } else {
                                sc->ferror_count++;
                        }
@@ -934,7 +934,7 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_record(GstPad *pad, GstPa
 
                                sc->isMaxsizePausing = TRUE;
                                msg.id = MM_MESSAGE_CAMCORDER_NO_FREE_SPACE;
-                               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                                return GST_PAD_PROBE_DROP; /* skip this buffer */
                        }
@@ -979,13 +979,13 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_record(GstPad *pad, GstPa
                msg.param.recording_status.elapsed = (unsigned long long)rec_pipe_time;
                msg.param.recording_status.filesize = (unsigned long long)((audioinfo->filesize + trailer_size) >> 10);
                msg.param.recording_status.remained_time = 0;
-               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                _mmcam_dbg_warn("Last filesize sent by message : %d", audioinfo->filesize + trailer_size);
 
                sc->isMaxsizePausing = TRUE;
                msg.id = MM_MESSAGE_CAMCORDER_MAX_SIZE;
-               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                /* skip this buffer */
                return GST_PAD_PROBE_DROP;
@@ -1004,7 +1004,7 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_record(GstPad *pad, GstPa
 
                sc->isMaxtimePausing = TRUE;
                msg.id = MM_MESSAGE_CAMCORDER_TIME_LIMIT;
-               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                /* skip this buffer */
                return GST_PAD_PROBE_DROP;
@@ -1018,7 +1018,7 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_record(GstPad *pad, GstPa
                msg.param.recording_status.elapsed = (unsigned long long)rec_pipe_time;
                msg.param.recording_status.filesize = (unsigned long long)((audioinfo->filesize + trailer_size) >> 10);
                msg.param.recording_status.remained_time = remained_time;
-               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                return GST_PAD_PROBE_OK;
        } else {
index 67b0ef93bed85c34fde3ca482aab79c7bb2c715a..efd0781bdb380c3a7b64115ef74c5c746be53185 100644 (file)
@@ -708,7 +708,7 @@ int _mmcamcorder_destroy(MMHandleType handle)
        }
 
        /* Remove messages which are not called yet */
-       _mmcamcroder_remove_message_all(handle);
+       _mmcamcorder_remove_message_all(handle);
 
        /* release model_name */
        if (hcamcorder->model_name) {
@@ -2228,8 +2228,8 @@ void _mmcamcorder_set_state(MMHandleType handle, int state)
                msg.param.state.previous = old_state;
                msg.param.state.current = state;
 
-               /*_mmcam_dbg_log("_mmcamcroder_send_message : msg : %p, id:%x", &msg, msg.id);*/
-               _mmcamcroder_send_message(handle, &msg);
+               /*_mmcam_dbg_log("_mmcamcorder_send_message : msg : %p, id:%x", &msg, msg.id);*/
+               _mmcamcorder_send_message(handle, &msg);
        }
 
        _MMCAMCORDER_UNLOCK_STATE(handle);
@@ -2682,7 +2682,7 @@ GstBusSyncReply _mmcamcorder_pipeline_bus_sync_callback(GstBus *bus, GstMessage
                        hcamcorder->error_occurs = TRUE;
                        msg.id = MM_MESSAGE_CAMCORDER_ERROR;
                        msg.param.code = hcamcorder->error_code;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                        goto DROP_MESSAGE;
                }
@@ -2698,7 +2698,7 @@ GstBusSyncReply _mmcamcorder_pipeline_bus_sync_callback(GstBus *bus, GstMessage
 
                        msg.id = MM_MESSAGE_CAMCORDER_FOCUS_CHANGED;
                        msg.param.code = focus_state;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                        goto DROP_MESSAGE;
                } else if (gst_structure_has_name(gst_message_get_structure(message), "camerasrc-HDR")) {
@@ -2711,7 +2711,7 @@ GstBusSyncReply _mmcamcorder_pipeline_bus_sync_callback(GstBus *bus, GstMessage
 
                                msg.id = MM_MESSAGE_CAMCORDER_HDR_PROGRESS;
                                msg.param.code = progress;
-                               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                        }
 
                        goto DROP_MESSAGE;
@@ -2782,7 +2782,7 @@ GstBusSyncReply _mmcamcorder_pipeline_bus_sync_callback(GstBus *bus, GstMessage
                                msg.param.size = sizeof(MMCamFaceDetectInfo);
                                msg.param.code = 0;
 
-                               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                        }
 
                        /* free fd_info allocated by plugin */
@@ -2862,7 +2862,7 @@ GstBusSyncReply _mmcamcorder_audio_pipeline_bus_sync_callback(GstBus *bus, GstMe
                                msg.param.code = hcamcorder->error_code;
                                _mmcam_dbg_err(" error : sc->error_occurs %d", hcamcorder->error_occurs);
                                g_error_free(err);
-                               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                                gst_message_unref(message);
                                message = NULL;
                                return GST_BUS_DROP;
@@ -3224,7 +3224,7 @@ static gboolean __mmcamcorder_handle_gst_error(MMHandleType handle, GstMessage *
        /* post error to application */
        hcamcorder->error_occurs = TRUE;
        msg.id = MM_MESSAGE_CAMCORDER_ERROR;
-       _mmcamcroder_send_message(handle, &msg);
+       _mmcamcorder_send_message(handle, &msg);
 
        return TRUE;
 }
index 8db724c6803ca5cdc82115362b701f6df500fc61..f0493eecfd5e43071c0e6eafa24ae93a45dfbe03 100644 (file)
@@ -949,7 +949,7 @@ void _mmcamcorder_element_release_noti(gpointer data, GObject *where_the_object_
 }
 
 
-gboolean _mmcamcroder_msg_callback(void *data)
+gboolean _mmcamcorder_msg_callback(void *data)
 {
        _MMCamcorderMsgItem *item = (_MMCamcorderMsgItem*)data;
        mmf_camcorder_t *hcamcorder = NULL;
@@ -1011,7 +1011,7 @@ MSG_CALLBACK_DONE:
 }
 
 
-gboolean _mmcamcroder_send_message(MMHandleType handle, _MMCamcorderMsgItem *data)
+gboolean _mmcamcorder_send_message(MMHandleType handle, _MMCamcorderMsgItem *data)
 {
        mmf_camcorder_t* hcamcorder = MMF_CAMCORDER(handle);
        _MMCamcorderMsgItem *item = NULL;
@@ -1059,7 +1059,7 @@ gboolean _mmcamcroder_send_message(MMHandleType handle, _MMCamcorderMsgItem *dat
 //             _mmcam_dbg_log("item[%p]", item);
 
                /* Use DEFAULT priority */
-               g_idle_add_full(G_PRIORITY_DEFAULT, _mmcamcroder_msg_callback, item, NULL);
+               g_idle_add_full(G_PRIORITY_DEFAULT, _mmcamcorder_msg_callback, item, NULL);
 
                _MMCAMCORDER_UNLOCK(handle);
        } else {
@@ -1070,7 +1070,7 @@ gboolean _mmcamcroder_send_message(MMHandleType handle, _MMCamcorderMsgItem *dat
 }
 
 
-void _mmcamcroder_remove_message_all(MMHandleType handle)
+void _mmcamcorder_remove_message_all(MMHandleType handle)
 {
        mmf_camcorder_t* hcamcorder = MMF_CAMCORDER(handle);
        _MMCamcorderMsgItem *item = NULL;
index cc0c3ff3604842ab5f3a32474637e4f4d8b6192c..de054ed559406f8716244bec16eeaf3e0d2624c3 100644 (file)
@@ -1131,7 +1131,7 @@ int _mmcamcorder_video_handle_eos(MMHandleType handle)
                        _mmcam_dbg_err("File size is greater than max size !!");
                        message.id = MM_MESSAGE_CAMCORDER_ERROR;
                        message.param.code = MM_ERROR_CAMCORDER_FILE_SIZE_OVER;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &message);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &message);
                }
        }
 
@@ -1149,7 +1149,7 @@ int _mmcamcorder_video_handle_eos(MMHandleType handle)
                if (ret != MM_ERROR_NONE) {
                        msg.id = MM_MESSAGE_CAMCORDER_ERROR;
                        msg.param.code = ret;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                        _mmcam_dbg_err("Failed to set state READY[%x]", ret);
                }
 
@@ -1165,7 +1165,7 @@ int _mmcamcorder_video_handle_eos(MMHandleType handle)
                if (ret != MM_ERROR_NONE) {
                        msg.id = MM_MESSAGE_CAMCORDER_ERROR;
                        msg.param.code = ret;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                        _mmcam_dbg_err("Failed to set state PLAYING[%x]", ret);
                }
        } else {
@@ -1181,7 +1181,7 @@ int _mmcamcorder_video_handle_eos(MMHandleType handle)
                report->recording_filename = strdup(info->filename);
                msg.param.data= report;
                msg.param.code = 1;
-               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
        }
 
        /* Finishing */
@@ -1320,7 +1320,7 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_check(GstPad *pad, GstPad
                        }
 
                        msg.id = MM_MESSAGE_CAMCORDER_MAX_SIZE;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                }
 
                pthread_mutex_unlock(&(videoinfo->size_check_lock));
@@ -1410,7 +1410,7 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_record(GstPad *pad, GstPa
                        } else {
                                msg.param.code = MM_ERROR_FILE_READ;
                        }
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                } else {
                        sc->ferror_count++;
                }
@@ -1441,7 +1441,7 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_record(GstPad *pad, GstPa
                                sc->isMaxsizePausing = TRUE;
 
                                msg.id = MM_MESSAGE_CAMCORDER_NO_FREE_SPACE;
-                               _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                               _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                        }
 
                        return GST_PAD_PROBE_DROP;
@@ -1469,7 +1469,7 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_record(GstPad *pad, GstPa
                        }
 
                        msg.id = MM_MESSAGE_CAMCORDER_MAX_SIZE;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                }
 
                pthread_mutex_unlock(&(videoinfo->size_check_lock));
@@ -1537,10 +1537,10 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_audio_disable(GstPad *pad
                        msg.param.recording_status.elapsed = (unsigned long long)rec_pipe_time;
                        msg.param.recording_status.filesize = (unsigned long long)((videoinfo->filesize + trailer_size) >> 10);
                        msg.param.recording_status.remained_time = 0;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                        msg.id = MM_MESSAGE_CAMCORDER_TIME_LIMIT;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                }
 
                return GST_PAD_PROBE_DROP;
@@ -1560,7 +1560,7 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_audio_disable(GstPad *pad
        msg.param.recording_status.elapsed = (unsigned long long)rec_pipe_time;
        msg.param.recording_status.filesize = (unsigned long long)((videoinfo->filesize + trailer_size) >> 10);
        msg.param.recording_status.remained_time = remained_time;
-       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
        /*
        _mmcam_dbg_log("time [%" GST_TIME_FORMAT "], size [%d]",
@@ -1654,10 +1654,10 @@ static GstPadProbeReturn __mmcamcorder_audioque_dataprobe(GstPad *pad, GstPadPro
                        msg.param.recording_status.elapsed = (unsigned long long)rec_pipe_time;
                        msg.param.recording_status.filesize = (unsigned long long)((videoinfo->filesize + trailer_size) >> 10);
                        msg.param.recording_status.remained_time = 0;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
                        msg.id = MM_MESSAGE_CAMCORDER_TIME_LIMIT;
-                       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+                       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
                }
 
                return GST_PAD_PROBE_DROP;
@@ -1667,7 +1667,7 @@ static GstPadProbeReturn __mmcamcorder_audioque_dataprobe(GstPad *pad, GstPadPro
        msg.param.recording_status.elapsed = (unsigned long long)rec_pipe_time;
        msg.param.recording_status.filesize = (unsigned long long)((videoinfo->filesize + trailer_size) >> 10);
        msg.param.recording_status.remained_time = remained_time;
-       _mmcamcroder_send_message((MMHandleType)hcamcorder, &msg);
+       _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
 
        /*
        _mmcam_dbg_log("audio data probe :: time [%" GST_TIME_FORMAT "], size [%lld KB]",