Remove temp commented code 36/42936/1
authorHyunil Park <hyunil46.park@samsung.com>
Mon, 6 Jul 2015 06:44:35 +0000 (15:44 +0900)
committerHyunil Park <hyunil46.park@samsung.com>
Mon, 6 Jul 2015 06:44:35 +0000 (15:44 +0900)
Change-Id: I2583d608c0117a4ef7241bc7c271eb4e18f0043f
Signed-off-by: Hyunil Park <hyunil46.park@samsung.com>
src/mm_player_priv.c
src/mm_player_utils.c

index 64aeb9dfaf6ec9d0d89fd72d5e9b2c7a2a661ef7..b3705ab11ed4992d51f07c7521f070d5c759027c 100755 (executable)
@@ -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 */
index d3414a5cab7f7f372883439fdd0b0ad803042375..9bd004298fb48b6f9ce431a47482e8a3dd256162 100755 (executable)
@@ -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;
        }