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);
}
}
+ 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);
return ret;
}
+
int image_meta_set_orientation(image_meta_h image, media_content_orientation_e orientation)
{
int ret = MEDIA_CONTENT_ERROR_NONE;
if(_image != NULL && STRING_VALID(_image->media_id))
{
- sql = sqlite3_mprintf(UPDATE_IMAGE_META_FROM_MEDIA, _image->orientation, _image->media_id);
+ sql = sqlite3_mprintf(UPDATE_IMAGE_META_FROM_MEDIA, _image->orientation, _image->weather, _image->media_id);
ret = _content_query_sql(sql);
sqlite3_free(sql);
}