From: Gilbok Lee Date: Mon, 6 Jul 2015 11:27:12 +0000 (+0900) Subject: Fixed crash when start transcoding X-Git-Tag: submit/tizen/20151110.073044~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5e1f2a83e60c2b9faecd7ca711e91ce1d23b939;p=platform%2Fcore%2Fmultimedia%2Flibmm-transcode.git Fixed crash when start transcoding Change-Id: Id21069c5a337c01969e39331f591a420d0fd1c8d Signed-off-by: Gilbok Lee --- 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) {