{
MMPlayerGstElement *textbin = NULL;
GList *element_bucket = NULL;
- GstPad *pad = NULL;
- GstPad *ghostpad = NULL;
gint i = 0;
MMPLAYER_FENTER();
break;
}
}
- gst_object_unref(pad);
MMPLAYER_FLEAVE();
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 */
}
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");
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 */
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;
}