return MS_MEDIA_ERR_NONE;
}
-static int _media_svc_save_image(unsigned char *image, unsigned int size, char *image_path, uid_t uid)
+static int __media_svc_save_image(unsigned char *image, unsigned int size, char *image_path, uid_t uid)
{
int ret = MS_MEDIA_ERR_NONE;
return MS_MEDIA_ERR_NONE;
}
-static char *_media_svc_get_title_from_filepath(const char *path)
+static char *__media_svc_get_title_from_filepath(const char *path)
{
char *filename = NULL;
char *title = NULL;
/* Set filename to title for all media */
char *title = NULL;
- title = _media_svc_get_title_from_filepath(content_info->path);
+ title = __media_svc_get_title_from_filepath(content_info->path);
if (title) {
ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
if (ret != MS_MEDIA_ERR_NONE)
if (idx == size) {
media_svc_debug("Can't extract title. All string is space");
- title = _media_svc_get_title_from_filepath(content_info->path);
+ title = __media_svc_get_title_from_filepath(content_info->path);
if (title) {
ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
if (ret != MS_MEDIA_ERR_NONE)
}
} else {
SAFE_FREE(err_attr_name);
- title = _media_svc_get_title_from_filepath(content_info->path);
+ title = __media_svc_get_title_from_filepath(content_info->path);
if (title) {
ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
if (ret != MS_MEDIA_ERR_NONE)
char *no_tag_title = NULL;
media_svc_error("no tag information");
- no_tag_title = _media_svc_get_title_from_filepath(content_info->path);
+ no_tag_title = __media_svc_get_title_from_filepath(content_info->path);
if (no_tag_title) {
ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, no_tag_title);
if (ret != MS_MEDIA_ERR_NONE)
if (idx == size) {
media_svc_debug("Can't extract title. All string is space");
- title = _media_svc_get_title_from_filepath(content_info->path);
+ title = __media_svc_get_title_from_filepath(content_info->path);
if (title) {
ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
if (ret != MS_MEDIA_ERR_NONE)
}
} else {
SAFE_FREE(err_attr_name);
- title = _media_svc_get_title_from_filepath(content_info->path);
+ title = __media_svc_get_title_from_filepath(content_info->path);
if (title) {
ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
if (ret != MS_MEDIA_ERR_NONE)
}
if (strlen(thumb_path) > 0) {
- ret = _media_svc_save_image(resize_image, resize_size, thumb_path, uid);
+ ret = __media_svc_save_image(resize_image, resize_size, thumb_path, uid);
if (ret != MS_MEDIA_ERR_NONE) {
media_svc_error("Fail to Save Thumbnail Image");
} else {
char *no_tag_title = NULL;
media_svc_error("no tag information");
- no_tag_title = _media_svc_get_title_from_filepath(content_info->path);
+ no_tag_title = __media_svc_get_title_from_filepath(content_info->path);
if (no_tag_title) {
ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, no_tag_title);
if (ret != MS_MEDIA_ERR_NONE)