[Release version 0.10.39] 1. Fix build warnings, 2. Remove hard-coding for ini file...
[platform/core/multimedia/libmm-camcorder.git] / src / mm_camcorder_gstcommon.c
index 556ffc6..1ba11c6 100644 (file)
@@ -793,7 +793,7 @@ int _mmcamcorder_create_encodesink_bin(MMHandleType handle, MMCamcorderEncodebin
                }
 
                if (sc->info_image->preview_format == MM_PIXEL_FORMAT_ENCODED_H264) {
-                       gst_element_venc_name = strdup("capsfilter");
+                       gst_element_venc_name = "capsfilter";
                } else {
                        _mmcamcorder_conf_get_value_element_name(VideoencElement, &gst_element_venc_name);
                }
@@ -848,11 +848,6 @@ int _mmcamcorder_create_encodesink_bin(MMHandleType handle, MMCamcorderEncodebin
                if (use_venc_queue) {
                        _MMCAMCORDER_ENCODEBIN_ELMGET(sc, _MMCAMCORDER_ENCSINK_VENC_QUE, "use-venc-queue", err);
                }
-
-               if (sc->info_image->preview_format == MM_PIXEL_FORMAT_ENCODED_H264) {
-                       free(gst_element_venc_name);
-                       gst_element_venc_name = NULL;
-               }
        }
 
        if (sc->audio_disable == FALSE &&