From: Hyunil Park Date: Mon, 6 Jul 2015 06:44:35 +0000 (+0900) Subject: Remove temp commented code X-Git-Tag: submit/tizen/20150707.042913~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=841e2a857ca6d56f08b41de580e8d6f5acda9dda;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git Remove temp commented code Change-Id: I2583d608c0117a4ef7241bc7c271eb4e18f0043f Signed-off-by: Hyunil Park --- diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index 64aeb9d..b3705ab 100755 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -6246,8 +6246,6 @@ static int __mmplayer_gst_create_text_pipeline(mm_player_t* player) { MMPlayerGstElement *textbin = NULL; GList *element_bucket = NULL; - GstPad *pad = NULL; - GstPad *ghostpad = NULL; gint i = 0; MMPLAYER_FENTER(); @@ -6331,7 +6329,6 @@ static int __mmplayer_gst_create_text_pipeline(mm_player_t* player) break; } } - gst_object_unref(pad); MMPLAYER_FLEAVE(); @@ -6341,12 +6338,6 @@ ERROR: debug_log("ERROR : releasing textbin\n"); - if ( pad ) - gst_object_unref(GST_OBJECT(pad)); - - if ( ghostpad ) - gst_object_unref(GST_OBJECT(ghostpad)); - g_list_free( element_bucket ); /* release element which are not added to bin */ @@ -9224,12 +9215,10 @@ static int __mmfplayer_parse_profile(const char *uri, void *param, MMPlayerParse } ret = MM_ERROR_NONE; } - #if 0 else if (file_stat == MM_ERROR_PLAYER_PERMISSION_DENIED) { data->uri_type = MM_PLAYER_URI_TYPE_NO_PERMISSION; } - #endif else { debug_error ("invalid uri, could not play..\n"); @@ -9240,7 +9229,7 @@ static int __mmfplayer_parse_profile(const char *uri, void *param, MMPlayerParse if (data->uri_type == MM_PLAYER_URI_TYPE_NONE) { ret = MM_ERROR_PLAYER_FILE_NOT_FOUND; } else if (data->uri_type == MM_PLAYER_URI_TYPE_NO_PERMISSION){ -// ret = MM_ERROR_PLAYER_PERMISSION_DENIED; + ret = MM_ERROR_PLAYER_PERMISSION_DENIED; } /* dump parse result */ diff --git a/src/mm_player_utils.c b/src/mm_player_utils.c index d3414a5..9bd0042 100755 --- a/src/mm_player_utils.c +++ b/src/mm_player_utils.c @@ -54,7 +54,7 @@ int util_exist_file_path(const char *file_path) debug_error("failed to open file by %s (%d)", strerror(errno), errno); if (EACCES == errno) -// return MM_ERROR_PLAYER_PERMISSION_DENIED; + return MM_ERROR_PLAYER_PERMISSION_DENIED; return MM_ERROR_PLAYER_FILE_NOT_FOUND; }