static int
ml_tizen_mm_convert_element (ml_pipeline_h pipe, gchar ** result, gboolean is_internal)
{
- gchar *converted;
gchar *video_src, *audio_src;
MMHandleType hcam = NULL;
MMCamPreset cam_info;
int status = ML_ERROR_STREAMS_PIPE;
int err;
- converted = *result;
-
- video_src = g_strstr_len (converted, -1, ML_TIZEN_CAM_VIDEO_SRC);
- audio_src = g_strstr_len (converted, -1, ML_TIZEN_CAM_AUDIO_SRC);
+ video_src = g_strstr_len (*result, -1, ML_TIZEN_CAM_VIDEO_SRC);
+ audio_src = g_strstr_len (*result, -1, ML_TIZEN_CAM_AUDIO_SRC);
/* replace src element */
if (video_src || audio_src) {
if (video_src) {
/* category CONFIGURE_CATEGORY_MAIN_VIDEO_INPUT */
status = ml_tizen_mm_replace_element (hcam, cam_conf, 1, "VideosrcElement",
- ML_TIZEN_CAM_VIDEO_SRC, &converted);
+ ML_TIZEN_CAM_VIDEO_SRC, result);
if (status != ML_ERROR_NONE)
goto mm_error;
}
if (audio_src) {
/* category CONFIGURE_CATEGORY_MAIN_AUDIO_INPUT */
status = ml_tizen_mm_replace_element (hcam, cam_conf, 2, "AudiosrcElement",
- ML_TIZEN_CAM_AUDIO_SRC, &converted);
+ ML_TIZEN_CAM_AUDIO_SRC, result);
if (status != ML_ERROR_NONE)
goto mm_error;
}