char *date_taken;
char *title;
char *burst_id;
- char *weather;
char *exposure_time;
double fnumber;
int iso;
/* Update Meta*/
#define UPDATE_AV_META_FROM_MEDIA "UPDATE '%s' SET played_count=%d, last_played_time=%d, last_played_position=%d WHERE media_uuid='%q'"
-#define UPDATE_IMAGE_META_FROM_MEDIA "UPDATE '%s' SET orientation=%d, weather=%Q WHERE media_uuid='%q'"
+#define UPDATE_IMAGE_META_FROM_MEDIA "UPDATE '%s' SET orientation=%d WHERE media_uuid='%q'"
#define SELECT_MEDIA_ITEM "SELECT "MEDIA_INFO_ITEM" FROM '%s' WHERE validity=1"
#define SELECT_MEDIA_FROM_MEDIA "SELECT "MEDIA_INFO_ITEM" FROM '%s' WHERE validity=1 AND media_uuid='%s'"
char *date_taken;
char *title;
char *burst_id;
- char *weather;
char *exposure_time;
double fnumber;
int iso;
/* Update Meta*/
#define UPDATE_AV_META_FROM_MEDIA "UPDATE '%s' SET played_count=%d, last_played_time=%d, last_played_position=%d WHERE media_uuid='%q'"
-#define UPDATE_IMAGE_META_FROM_MEDIA "UPDATE '%s' SET orientation=%d, weather=%Q WHERE media_uuid='%q'"
+#define UPDATE_IMAGE_META_FROM_MEDIA "UPDATE '%s' SET orientation=%d WHERE media_uuid='%q'"
#define UPDATE_VIDEO_MM_DATA_FROM_MEDIA "UPDATE '%s' SET bitrate=%d, duration=%d, width=%d, height=%d WHERE media_uuid='%q'"
#define UPDATE_AUDIO_MM_DATA_FROM_MEDIA "UPDATE '%s' SET duration=%d, bitrate=%d, bitpersample=%d, samplerate=%d, channel=%d WHERE media_uuid='%q'"
Name: capi-content-media-content
Summary: A Media content library in Tizen Native API
-Version: 0.3.29
+Version: 0.3.30
Release: 0
Group: Multimedia/API
License: Apache-2.0
SAFE_FREE(_image->media_id);
SAFE_FREE(_image->date_taken);
SAFE_FREE(_image->title);
- SAFE_FREE(_image->weather);
SAFE_FREE(_image->burst_id);
SAFE_FREE(_image->exposure_time);
SAFE_FREE(_image->model);
}
}
- if (STRING_VALID(_src->weather)) {
- _dst->weather = strdup(_src->weather);
- if (_dst->weather == NULL) {
- media_content_error("OUT_OF_MEMORY(0x%08x)", MEDIA_CONTENT_ERROR_OUT_OF_MEMORY);
- image_meta_destroy((image_meta_h)_dst);
- return MEDIA_CONTENT_ERROR_OUT_OF_MEMORY;
- }
- }
-
if (STRING_VALID(_src->burst_id)) {
_dst->burst_id = strdup(_src->burst_id);
if (_dst->burst_id == NULL) {
ret = _media_db_get_storage_id_by_media_id(_image->media_id, storage_id);
media_content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret);
- sql = sqlite3_mprintf(UPDATE_IMAGE_META_FROM_MEDIA, storage_id, _image->orientation, _image->weather, _image->media_id);
+ sql = sqlite3_mprintf(UPDATE_IMAGE_META_FROM_MEDIA, storage_id, _image->orientation, _image->media_id);
ret = _content_query_sql(sql);
SQLITE3_SAFE_FREE(sql);
} else {
_media->image_meta->orientation = sqlite3_column_int(stmt, MEDIA_INFO_ORIENTATION);
_media->image_meta->title = g_strdup((const char *)sqlite3_column_text(stmt, MEDIA_INFO_TITLE));
_media->image_meta->burst_id = g_strdup((const char *)sqlite3_column_text(stmt, MEDIA_INFO_BURST_ID));
- _media->image_meta->weather = g_strdup((const char *)sqlite3_column_text(stmt, MEDIA_INFO_WEATHER));
_media->image_meta->exposure_time = g_strdup((const char *)sqlite3_column_text(stmt, MEDIA_INFO_EXPOSURE_TIME));
_media->image_meta->model = g_strdup((const char *)sqlite3_column_text(stmt, MEDIA_INFO_MODEL));
}
SAFE_FREE(_media->image_meta->exposure_time);
SAFE_FREE(_media->image_meta->model);
SAFE_FREE(_media->image_meta->title);
- SAFE_FREE(_media->image_meta->weather);
SAFE_FREE(_media->image_meta);
}
}
}
- if (_src->image_meta->weather != NULL) {
- _dst->image_meta->weather = g_strdup(_src->image_meta->weather);
- if (_dst->image_meta->weather == NULL) {
- media_content_error("OUT_OF_MEMORY(0x%08x)", MEDIA_CONTENT_ERROR_OUT_OF_MEMORY);
- media_info_destroy((media_info_h)_dst);
- return MEDIA_CONTENT_ERROR_OUT_OF_MEMORY;
- }
- }
-
if (_src->image_meta->exposure_time != NULL) {
_dst->image_meta->exposure_time = g_strdup(_src->image_meta->exposure_time);
if (_dst->image_meta->exposure_time == NULL) {
_image->date_taken = g_strdup(_media->image_meta->date_taken);
_image->title = g_strdup(_media->image_meta->title);
_image->burst_id = g_strdup(_media->image_meta->burst_id);
- _image->weather = g_strdup(_media->image_meta->weather);
_image->exposure_time = g_strdup(_media->image_meta->exposure_time);
_image->model = g_strdup(_media->image_meta->model);
SAFE_FREE(_media->image_meta->exposure_time);
SAFE_FREE(_media->image_meta->model);
SAFE_FREE(_media->image_meta->title);
- SAFE_FREE(_media->image_meta->weather);
SAFE_FREE(_media->image_meta);
}