Minje Ahn [Thu, 4 Jul 2024 01:17:35 +0000 (10:17 +0900)]
Remove unused parameters
Change-Id: Ib84e4fa24bd1aa81b8165d8d332300db12470c81
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Seungbae Shin [Mon, 10 Jun 2024 12:10:37 +0000 (21:10 +0900)]
Remove unnecessary executable permissions
Change-Id: Ic55865a6e509a7a43dc40db232a134e445832bfd
Minje Ahn [Mon, 10 Jun 2024 01:24:34 +0000 (10:24 +0900)]
Fix unreachable code
Change-Id: I96a79ffd9d18ba0b9cdc644b4495bba54da8a29b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 16 May 2024 00:10:03 +0000 (09:10 +0900)]
Append list directly
Change-Id: I706081010b9183fa840feab1989beafcafafb1aa
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 16 May 2024 00:07:02 +0000 (09:07 +0900)]
Use media-util APIs
Change-Id: Ia9f10b9bbf5210002419dc363bac37902b853aa6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 15 May 2024 23:16:44 +0000 (08:16 +0900)]
Move table creation function to media-svc-db-utils
Function related to table creation have been moved to more appropriate locations.
Change-Id: Ic35913ee33853016cf83167a5ec838fae4f11abb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 9 May 2024 01:46:28 +0000 (10:46 +0900)]
Add sql_autoptr type
sql_autoptr:
__attribute__((cleanup(sqlite3_free))) char *
Change-Id: I28876307617e052a85296fcc0bf366d3f5016f02
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 9 May 2024 00:55:34 +0000 (09:55 +0900)]
Fix sign-compare
The return value of read() is ssize_t(int).
So modified types.
Change-Id: I9c72344b7936c470ccd971ee7a59ab973a21a3f3
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 7 May 2024 08:07:59 +0000 (17:07 +0900)]
Fix 'start_pos' > 'end_pos' issue
[cause]
The following string can be read from a PDF file with consecutive xmp metadata blocks:
... </x:xmpmeta><x:xmpmeta ...
In this case, 'end_pos' is less than 'start_pos'.
[solve]
Anything before 'start_pos' in the buffer is ignored.
Change-Id: I28d2669c1ecaf755501da64b903a23478c723ef2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 24 Apr 2024 06:11:25 +0000 (15:11 +0900)]
Remove folder_modified_time field
'folder_modified_time' in folder table is no longer used.
Deleted the relevant code.
Change-Id: I9c423296619e8cf6dcd5807faf7dc30fc490df5e
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 15 Apr 2024 23:30:17 +0000 (08:30 +0900)]
Fix recorded_date error
Change-Id: I8890988f40098e8cbb4d682538666748081187e1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 15 Apr 2024 02:09:12 +0000 (11:09 +0900)]
Add missing code related recorded_date
Change-Id: Ic1bbf213ef0571b741e5170fb0ddafab5f406dc9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 11 Apr 2024 03:59:59 +0000 (12:59 +0900)]
Rename _media_svc_sql_prepare_to_step_###
Change the name to an easier-to-understand name.
Change-Id: If4a3cb505756c7ba685c0313d482cfb8c7fe3732
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 11 Apr 2024 03:31:15 +0000 (12:31 +0900)]
Rollback recorded_date for web TC
Change-Id: I57066e691a7e950a7b269067fb5e735a39a7fa56
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 10 Apr 2024 23:52:56 +0000 (08:52 +0900)]
Modify to use sqlite3_free in each functions
Change-Id: I14ab999688df41601c2d0f04eaecbd815a46b6a9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 8 Apr 2024 01:48:11 +0000 (10:48 +0900)]
Use %Q instead of '%q'
Change-Id: Id62bc2e5aaff4961b947ea607e1f0cbd7595c059
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 2 Apr 2024 01:21:38 +0000 (10:21 +0900)]
Repackage sources
1. Merge header into 'include/' directory
2. Move source code under 'src/'
Change-Id: I0200d9e7342d3b161bd51c2155f4fce02945f79e
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 28 Mar 2024 00:52:08 +0000 (09:52 +0900)]
Correct the type
'ExifShort' is unsigned short.
Updated related code.
Change-Id: I1bb550b5171ba5dedb4d734c99238be2a57644f2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 20 Mar 2024 00:31:01 +0000 (09:31 +0900)]
Change DB field name to orientation from media_orientation
Change-Id: Id9b74b9c28a5740365d7189b07286cc8bf1e31b5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Jiyong [Tue, 19 Mar 2024 06:00:06 +0000 (15:00 +0900)]
Fix build error for product TV
- error: declaration of 'keyword'/'runner' shadows
Change-Id: Ia41309fa534f6e6a9c8112e2cca9a1c80a564415
minje.ahn [Wed, 13 Mar 2024 06:46:33 +0000 (15:46 +0900)]
Remove deprecated fields
These fields have not been removed yet, but are unused.
So the extraction code is removed.
After remove ACR, remaining code including DB fields will be removed.
Change-Id: Ia9df85138158b3b2f18135b93f26db555e8d55a5
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 19 Mar 2024 06:50:13 +0000 (15:50 +0900)]
Remove bundle insert
bundle insert was added for media-scanner.
However, media-scanner is using _media_svc_sql_query_list_direct().
playlist, and tag do not need quick insertion. So remove it.
Change-Id: Ic3c61d37fb5333133c63da801ccb0d4aba893eec
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 15 Mar 2024 03:10:47 +0000 (12:10 +0900)]
Fix title being inserted as an empty string
Change-Id: I6193f32315139378390e5cab7cfc6cf049011c13
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 12 Mar 2024 06:49:16 +0000 (15:49 +0900)]
Remove query length checker
This check code was TV product feature.
But it has been removed from tizen_tv_fork.
So we sync it as public.
Change-Id: I06e58b9d0aa2fd6db8173745ad8401ddf92f9d18
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
Minje ahn [Tue, 12 Mar 2024 03:01:50 +0000 (03:01 +0000)]
Merge "Use sql function instead" into tizen
minje.ahn [Tue, 12 Mar 2024 01:48:48 +0000 (10:48 +0900)]
Remove default album info from image type
Due to changes in behavior, default values are no longer required for image type.
Change-Id: Ia4292615f62e0fa5507d6bd323d9244e2ee2b8bd
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Mon, 11 Mar 2024 08:18:21 +0000 (17:18 +0900)]
Use sql function instead
SQLITE supports 'unixepoch()' function since 3.38.0
So we update media table schema to 'added_time integer DEFAULT (unixepoch())'.
Change-Id: I78eb2ef87896f346b11c1c4507e3058bb019e504
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Mon, 11 Mar 2024 02:44:45 +0000 (11:44 +0900)]
Cleanup _media_svc_extract_audio_metadata
Change-Id: I45048ea1491a1f1cc41a5e114eb068c9d330bafb
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Mon, 11 Mar 2024 02:26:35 +0000 (11:26 +0900)]
Delete unreachable case
If it works properly, ' album' and 'artist' are not null.
Change-Id: Ie310f5f0a2ae87a85349510fcf839e282b1e8570
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 29 Feb 2024 02:25:12 +0000 (11:25 +0900)]
Remove TYER value checker
If it meets the ID3 tag rules, there is no need to check the value.
Change-Id: I817a8822bf18993227ef1ebb2391b7093aeb6c2e
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Mon, 11 Mar 2024 00:31:04 +0000 (09:31 +0900)]
Modify _media_svc_extract_book_metadata()
Change to extract title inside of function.
Change-Id: Ic0c276dfa73a78d8161f978715407119d0492174
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 6 Mar 2024 08:31:46 +0000 (17:31 +0900)]
Cleanup header
Change-Id: I6674f047317e5115a8a90b2b981fcbdc88a70ef5
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 6 Mar 2024 06:17:19 +0000 (15:17 +0900)]
Use ms_user_get_root_length
Change-Id: I6c08d3849b54e911b62992b12280f44101bcabd2
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 6 Mar 2024 05:20:01 +0000 (14:20 +0900)]
Add string vaild function
Change-Id: Id4221d315dee719a85154a4aaca3192a2915243e
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 6 Mar 2024 04:19:16 +0000 (13:19 +0900)]
Use g_strlcpy, g_strlcat directly
Change-Id: Ibdf1641a85f97d90af4795ade6964d62e6102302
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 6 Mar 2024 04:13:07 +0000 (13:13 +0900)]
Use tzplatform API directly
Change-Id: Ice2c3b844c1cbc66f6aa8cb628e4d529c721b6d1
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 28 Feb 2024 02:47:13 +0000 (11:47 +0900)]
Use MS_STRING_VALID instead
1. Used MS_STRING_VALID instead of STRING_VALID.
2. Updated indent
3. Remove unused defines
Change-Id: Ib911243059fe04b5bba8b9dcae1d74e017fe3c85
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 20 Feb 2024 23:03:15 +0000 (08:03 +0900)]
Use get_image_info instead
For reduce dependency, used get_image_info() instead of mm_util_extract_image_info()
Change-Id: I9d9b7bb7a9542af5497914186d766993cd8d82a0
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 14 Feb 2024 07:02:42 +0000 (16:02 +0900)]
Remove unnecessary handle parameter
Removed unnecessary sqlite handle parameter from media_svc_set_storage_validity().
This parameter is for TV product profile.
Change-Id: I224e8cc6721b7e7cfe5806a8066984392294adbf
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 8 Feb 2024 06:56:22 +0000 (15:56 +0900)]
Use filename instead of path
Use file name instead of full path.
It reduces duplicate function calls.
Change-Id: I1faade4c99edf1aaee2495e0e62424ace62e59c8
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 8 Feb 2024 04:35:54 +0000 (13:35 +0900)]
Remove unused defines
Change-Id: I71d09d0c4052e3c9e12ed263ad793112462694a1
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 8 Feb 2024 02:16:30 +0000 (11:16 +0900)]
Remove unused buildrequires
Change-Id: I66c0adc628c1ba935e55bbd0c3f0ea493f0dff3c
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 7 Feb 2024 05:34:39 +0000 (14:34 +0900)]
Fix missing delimit
Change-Id: I9b244b829591944f56f78104cdd4252b84ff8245
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 7 Feb 2024 02:44:56 +0000 (11:44 +0900)]
Restore some fields for TC
Remove again after ACR is done.
Change-Id: I069bad1354a1347bf49160fe830e32dd75c11e97
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 6 Feb 2024 07:38:59 +0000 (16:38 +0900)]
Use g_compute_checksum_for_string instead
glib support md5 checksum string.
So remove md5 related code.
Change-Id: I5b8203cc802a1fb6ac9dee8536ce4afbc441a4b2
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Mon, 5 Feb 2024 05:12:20 +0000 (14:12 +0900)]
Restore recorded_date temporarily
webapi ACR is not complete. (web-tct issue)
After webapi ACR, remove temporary code.
Change-Id: Ib3c62f317bb46b8ba72a959f306894f01882459b
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Sun, 4 Feb 2024 23:41:55 +0000 (08:41 +0900)]
Fix build error
Append <fcntl.h> for open(), O_RDONLY
Change-Id: I1c144ae76fff958734831ba767c8aa6d42c9da47
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 25 Jan 2024 08:06:17 +0000 (17:06 +0900)]
Update metadata extract logic
1. Separate audio and video.
2. Use default values in DB.
3. Modified to not extract deprecated metadata.
Change-Id: I7b0efa31065124b96c0aee9267bffa15be282d87
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 24 Jan 2024 06:20:29 +0000 (15:20 +0900)]
Update media-thumbnail error type
Change-Id: Icf456d3381ac85eae4403e509425b9a917c67be1
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 24 Jan 2024 06:17:55 +0000 (15:17 +0900)]
Remove deprecated image meta function
Change-Id: Ib212043f0b395170d191274205543b02b29034a1
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 23 Jan 2024 23:54:11 +0000 (08:54 +0900)]
Remove storage type
Change-Id: I92d8abd5d23b459f9deafa7436af2d8970d58693
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 23 Jan 2024 00:17:04 +0000 (09:17 +0900)]
Remove duplicated defines
The same defines are in media-util.h.
Change-Id: Ie5f91d38a8298adfbd80232349b90a031f361bae
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 18 Jan 2024 04:29:26 +0000 (13:29 +0900)]
Remove contact in boilerplate
Change-Id: I8595c3f13d94371dbbbb9920d906d7ac76682c35
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 26 Dec 2023 05:23:30 +0000 (14:23 +0900)]
Remove scanner-v2 related plugin APIs
Change-Id: Ia4dce7152d9742208dc1fe91f82a9fd2e5e8d1e0
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 26 Dec 2023 04:42:39 +0000 (13:42 +0900)]
Remove the logic to update metadata when changing language
This logic is for MX feature.
Change-Id: I88f4d307aff1f70fbee8f89d9b40bed5e913babf
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 21 Dec 2023 01:35:14 +0000 (10:35 +0900)]
Cleanup plugin APIs
Sorted by feature
Change-Id: Iad469f78290d9d65403bbbf4dccfc447dc60e7b3
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Fri, 15 Dec 2023 03:58:56 +0000 (12:58 +0900)]
Remove CDIS
Remove MX CDIS feature.
Change-Id: I463ebab0a66647ae29cfae4b9304a9f9cf5c6104
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Fri, 15 Dec 2023 01:56:36 +0000 (10:56 +0900)]
Remove OMA DRM related code
OMA(Open Mobile Alliance) DRM information is no longer used.
Delete that code.
Change-Id: I9b90e07090d85fb4934b5fc75601923d95c2a121
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 5 Dec 2023 06:04:41 +0000 (15:04 +0900)]
[ACR-1804] Remove pinyin
Change-Id: I46501f2a8489bfedc31aa64b00a6f19133560283
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Fri, 14 Jul 2023 02:13:13 +0000 (11:13 +0900)]
Remove pinyin converter
Removed pinyin related code.
DB fields will be deleted via ACR to avoid query failure.
Change-Id: I81c213c93f1285a41d1c9d14e9d7b7365076bf52
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Fri, 17 Feb 2023 01:48:57 +0000 (10:48 +0900)]
Change '%q' to %Q
Change-Id: I20fd9399fa108be39a399c3805deb2d1f2d5e22c
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Fri, 17 Feb 2023 07:41:43 +0000 (16:41 +0900)]
Remove unused DB fields
Removed unused db fields according to filter keyword deletion.
Refer to [ACR-1735].
Change-Id: I3da03b32f76613571c9a30d9f71b07dcc5ac2613
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 12 Oct 2022 07:18:04 +0000 (16:18 +0900)]
Change folder_id to row id instead of uuid
Change to row id instead of uuid for manageability.
Change-Id: I3ac10086173be81d2eb3f2b015f5e8003c9d7281
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 12 Oct 2022 05:56:06 +0000 (14:56 +0900)]
Remove storage_id parameter
Removed 'storage_id' as it does not affect the query results.
Change-Id: Ib2c4d0a6d23cd485c6ef6a9a556f5125359ec9e9
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 13 Oct 2022 05:34:36 +0000 (14:34 +0900)]
Fix crash issue
Set to null to prevent malfunction.
Change-Id: Ia2bd9ab7089223916e62db2cd4cd31d509c7adfd
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 12 Oct 2022 00:09:40 +0000 (09:09 +0900)]
Fix check_db not working properly
Change-Id: I084c3a108baaca534c8ae54e3bc9c9b1b01b30c1
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Mon, 19 Sep 2022 01:11:09 +0000 (10:11 +0900)]
Remove user version
Change-Id: Iad7312f87d013f8fbc659fcf2ec9d9183f2b0ffc
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 30 Aug 2022 05:13:32 +0000 (14:13 +0900)]
Fix wrong error type
Change-Id: I6081b05fef234546aabfc6db011ea6a7e403c831
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 30 Aug 2022 01:58:46 +0000 (10:58 +0900)]
Add default thumb size
Change-Id: I3fb0f4521d70e90aeb106ec3434e75c3cb70c1e4
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 14 Jun 2022 05:00:09 +0000 (14:00 +0900)]
Fix buffer overflow
Change-Id: Iaf4c4b70dc56cc63e244d5bcd4d85b860c46655e
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
Seungbae Shin [Fri, 6 May 2022 04:21:05 +0000 (13:21 +0900)]
Disable podofo logging
Change-Id: I054b8a9563051e4fc158efa0021f69955cb7a0f4
Seungbae Shin [Fri, 1 Apr 2022 07:14:23 +0000 (16:14 +0900)]
Refactoring ebook plugin
- Apply strategy pattern
- Separate files for classes and interfaces
Change-Id: Icd06ad64b41ba7f799fa445cb12e2a6af9c99fbf
Minje Ahn [Tue, 29 Mar 2022 02:46:17 +0000 (11:46 +0900)]
Add plugin APIs for ebook db
Change-Id: I117d58beba7872bc227da43fdad7937f1bbfdc03
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 1 Sep 2021 23:59:16 +0000 (08:59 +0900)]
Separate functions that use podofo
It took a lot of time to read podofo, so split it with dlopen.
Change-Id: I57b49f062019311ba8aa3b26094c9a0c0fcd4ae4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Seungbae Shin [Fri, 23 Jul 2021 03:44:16 +0000 (12:44 +0900)]
Refactoring ebook keyword search
Change-Id: If676f1e2c0564789f4c15900ec4e764903b35fa1
Minje Ahn [Thu, 22 Jul 2021 01:26:13 +0000 (10:26 +0900)]
Add to search ebooks with keywords
Change-Id: I7c4210616e56c28bb4ab5ff5e58721c37ea0263d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 22 Jul 2021 08:27:14 +0000 (17:27 +0900)]
Fix coverity issue
Change-Id: I6c9e854e3f857829b804aecc4f416bec778bfc79
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 19 Jul 2021 03:16:25 +0000 (12:16 +0900)]
Improve __media_svc_get_media_type()
Change-Id: I2005aa361acab47ce7a9e69bef8a2e362de24319
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 19 Jul 2021 03:11:23 +0000 (12:11 +0900)]
Use media type instead of category
Change-Id: I4eb701b9c71cf7be41556a5a1f5d83e009529187
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 14 Jul 2021 06:31:52 +0000 (15:31 +0900)]
Remove unnecessary parameter
Removed 'favourite' from 'media_svc_content_info_s' struct.
This field is only updated by media-content.
And media.db set this field to 0 by default.
Change-Id: I1acbbb8278250e6e32beda190ef636f0e8e6825a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 7 Jun 2021 23:16:13 +0000 (08:16 +0900)]
[ACR-1635] Support ebook format
Change-Id: I4aa398047226f1efd81ee4ee79a10a7fbea19245
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 4 May 2021 05:49:15 +0000 (14:49 +0900)]
Version up (0.4.19 to 0.4.20)
Change-Id: Ia4347aded482ddcd6de297b8a3f81ac57c1cddb9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 3 May 2021 01:14:14 +0000 (10:14 +0900)]
Improve mime type verification
Change-Id: I6b45ec158e247ed1dc28e563e34f59fe54944199
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 3 May 2021 00:38:06 +0000 (09:38 +0900)]
Reinforce readability
Change-Id: Ib75f40bb414d4c29314eee2e2c832aafcd0043d2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 23 Apr 2021 06:16:48 +0000 (15:16 +0900)]
Fix minor issue
Fix comparison of integer expressions of different signedness
Change-Id: I75d7130924bc7021bfad9e850ad846b9f9291a24
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 20 Apr 2021 07:43:52 +0000 (16:43 +0900)]
Remove __media_svc_resize_artwork()
There were no memory or storage related issues after resizing was prevented.
So, remove __media_svc_resize_artwork() function.
[Information]
Prevent resize for performance (2020.02.07)
In most cases, artwork's format is jpeg and size is under MEDIA_SVC_ARTWORK_SIZE * MEDIA_SVC_ARTWORK_SIZE.
So, doing mm_util_extract_image_info to check image size is a time-consuming task.
Change-Id: I42e400c7acaac0da1f97ff52e7c3d988f4bc892d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 9 Apr 2021 04:37:43 +0000 (13:37 +0900)]
Improve GPS parsing function
Change-Id: Ib2ccf89906e72d5daaf1bf62f0d204e9617fc9d1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 6 Apr 2021 23:37:19 +0000 (08:37 +0900)]
Fix GPS bug
1. Changed to return error if there is no GPS information in image file.
2. Fixed the issue where 'content_info' is not initialized if there is no EXIF information.
Change-Id: Ib0e9f26b14d4948d6ce282a6ff26b4448991f62d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 5 Apr 2021 00:44:01 +0000 (09:44 +0900)]
Fix invalid suffix on literal
Change-Id: I951f8d45e8c8e2bc9ab59eefa3807c140bb06190
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 5 Apr 2021 00:15:50 +0000 (09:15 +0900)]
Fix double free
Change-Id: I23d13cff392a73d01e834fb1c1de31ea29209393
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje ahn [Wed, 24 Mar 2021 04:22:49 +0000 (04:22 +0000)]
Merge "Version up (0.4.14 to 0.4.15)" into tizen
Minje Ahn [Tue, 23 Mar 2021 01:39:00 +0000 (10:39 +0900)]
Version up (0.4.14 to 0.4.15)
Change-Id: I6d8e9284fa4f7dc4d5acdb9cfb0f5f0c077f309a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 22 Mar 2021 05:33:52 +0000 (14:33 +0900)]
Fix memory leak
Change-Id: I92454508f2d2b2d330dde2c9a6ac1c756e716a91
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 22 Mar 2021 05:29:51 +0000 (14:29 +0900)]
Change GPtrArray to GList to improve readability
Change-Id: I47f5886952853655cf56df66515072789f537d01
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 16 Dec 2020 04:23:08 +0000 (13:23 +0900)]
Skip albumart extraction when scanning USB storage
Change-Id: Ibc36c3f86726eea9d585b9d24b2c42364cae88e9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 1 Dec 2020 23:11:19 +0000 (08:11 +0900)]
Separate album art extraction
Changed to extract album art only on request.
Change-Id: I0dfb0cb89dabc4ac845bc34a9cf6b2cc40983231
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
jiyong.min [Tue, 15 Sep 2020 08:13:19 +0000 (17:13 +0900)]
Fix tainted data and minor change
- Add to check return value of fread due to tainted data
- Add to check minimum value of '((x[0] << 8) | (x[1]))'
- minor change. change 'long' and 'gsize' to 'size_t'
Change-Id: Ib71be1c7caeea8c99cb6194734599930d4d64bc1
Minje Ahn [Thu, 10 Sep 2020 07:18:21 +0000 (16:18 +0900)]
Version Up (0.4.12 -> 0.4.13)
Change-Id: I008604ae4701bda6b05e375497bde392640ef92f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 10 Sep 2020 04:34:25 +0000 (13:34 +0900)]
Fix external storage related code
Fixed an issue where media was visible even when external storage was unmounted.
Change-Id: If9a41404970cfb7d9a90e6c8db60abf5d1268312
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 9 Sep 2020 03:27:22 +0000 (12:27 +0900)]
Rollback media-scan-extractor-v2
Rollback __msc_check_extract_stop_status() for performance issue.
Change-Id: Id9c704d1ce798903fb7d00fc55a30c2bd0347583
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>