modify DB schema 05/37505/2 accepted/tizen/common/20150330.120344 accepted/tizen/mobile/20150331.005612 accepted/tizen/tv/20150331.004931 accepted/tizen/wearable/20150331.005251 submit/tizen/20150330.082553
authorji.yong.seo <ji.yong.seo@samsung.com>
Mon, 30 Mar 2015 07:58:53 +0000 (16:58 +0900)
committerji.yong.seo <ji.yong.seo@samsung.com>
Mon, 30 Mar 2015 08:07:17 +0000 (17:07 +0900)
Change-Id: I84af7c2836621ca4db7adb8c0e09013462ecfe2e

include/media_info_private.h
packaging/capi-content-media-content.spec
src/media_content.c

index 4c486a9..2652bd1 100755 (executable)
@@ -543,12 +543,6 @@ typedef struct _media_content_cb_data {
 #define UPDATE_AV_META_FROM_MEDIA      "UPDATE "DB_TABLE_MEDIA" SET played_count=%d, last_played_time=%d, last_played_position=%d WHERE media_uuid='%q'"
 #define UPDATE_IMAGE_META_FROM_MEDIA   "UPDATE "DB_TABLE_MEDIA" SET orientation=%d, weather=%Q WHERE media_uuid='%q'"
 
-/* Get Media list of Group */
-//#define MEDIA_INFO_ITEM "media_uuid, path, file_name, media_type, mime_type, size, added_time, modified_time, thumbnail_path, description,
-//                                                     rating, favourite, author, provider, content_name, category, location_tag, age_rating, is_drm, storage_type"
-#define MEDIA_INFO_ITEM "media_uuid, path, file_name, media_type, mime_type, size, added_time, modified_time, thumbnail_path, description, \
-                                                       rating, favourite, author, provider, content_name, category, location_tag, age_rating, keyword, is_drm, storage_type, longitude, latitude, altitude, width, height, datetaken, orientation, title, album, artist, album_artist, genre, composer, year, recorded_date, copyright, track_num, bitrate, duration, played_count, last_played_time, last_played_position, samplerate, channel, burst_id, timeline, weather, sync_status"
-
 #define SELECT_MEDIA_ITEM                                      "SELECT "MEDIA_INFO_ITEM" FROM "DB_TABLE_MEDIA" WHERE validity=1"
 #define SELECT_MEDIA_FROM_MEDIA                        "SELECT "MEDIA_INFO_ITEM" FROM "DB_TABLE_MEDIA" WHERE validity=1 AND media_uuid='%s'"
 #define SELECT_MEDIA_BY_PATH                           "SELECT "MEDIA_INFO_ITEM" FROM "DB_TABLE_MEDIA" WHERE validity=1 AND path='%q'"
index 135ebcb..a296f15 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-content-media-content
 Summary:    A Media content library in SLP C API
-Version:    0.2.60
+Version:    0.2.61
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index f6d49ef..500511e 100755 (executable)
@@ -108,6 +108,9 @@ static int __media_content_create_attr_handle(void)
        ret = _media_filter_attribute_add(g_attr_handle, MEDIA_BITRATE, DB_FIELD_MEDIA_BITRATE);
        media_content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret);
 
+       ret = _media_filter_attribute_add(g_attr_handle, MEDIA_BITPERSAMPLE, DB_FIELD_MEDIA_BITPERSAMPLE);
+       media_content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret);
+
        ret = _media_filter_attribute_add(g_attr_handle, MEDIA_SAMPLERATE, DB_FIELD_MEDIA_SAMPLERATE);
        media_content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret);