From b5e1f2a83e60c2b9faecd7ca711e91ce1d23b939 Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Mon, 6 Jul 2015 20:27:12 +0900 Subject: [PATCH] Fixed crash when start transcoding Change-Id: Id21069c5a337c01969e39331f591a420d0fd1c8d Signed-off-by: Gilbok Lee --- transcode/mm_transcode.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/transcode/mm_transcode.c b/transcode/mm_transcode.c index e1c7346..bf3f917 100755 --- a/transcode/mm_transcode.c +++ b/transcode/mm_transcode.c @@ -111,15 +111,15 @@ mm_audioencoder_e audioencoder) return MM_ERROR_INVALID_ARGUMENT; } - debug_log("%s== %s", handle->property->sourcefile, in_Filename); - if(0 == strlen(handle->property->sourcefile) || 0 == strcmp(handle->property->sourcefile, in_Filename)) { /* protect the case of changing input file during transcoding */ - /* set element*/ - ret = _mm_transcode_set_handle_element(handle, in_Filename, containerformat, videoencoder, audioencoder); - if(ret != MM_ERROR_NONE) { - debug_error("ERROR -Set element"); - return ret; - } + /* set element*/ + ret = _mm_transcode_set_handle_element(handle, in_Filename, containerformat, videoencoder, audioencoder); + if(ret != MM_ERROR_NONE) { + debug_error("ERROR -Set element"); + return ret; + } + debug_log("%s == %s", handle->property->sourcefile, in_Filename); + if(0 == strlen(handle->property->sourcefile) || 0 == strcmp(handle->property->sourcefile, in_Filename)) { /* protect the case of changing input file during transcoding */ /* setup */ ret = _mm_setup_pipeline(handle); if(ret == MM_ERROR_NONE) { -- 2.34.1