platform/core/multimedia/libmedia-service.git
3 months agoSet NULL after free 35/314535/2 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.235155 accepted/tizen/unified/20240717.060536 accepted/tizen/unified/dev/20240718.035906 accepted/tizen/unified/toolchain/20240812.133113 accepted/tizen/unified/x/20240718.022859 accepted/tizen/unified/x/asan/20240813.231356 tizen_9.0_m2_release
Minje Ahn [Mon, 15 Jul 2024 05:31:51 +0000 (14:31 +0900)]
Set NULL after free

Change-Id: Ie97d67a234ed5b216e1afa3cc212321b8740b246
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 months agoCleanup refresh function 49/314449/3 accepted/tizen/unified/20240715.155438 accepted/tizen/unified/dev/20240716.080844 accepted/tizen/unified/x/20240716.041627
Minje Ahn [Fri, 12 Jul 2024 01:03:00 +0000 (10:03 +0900)]
Cleanup refresh function

Change-Id: I41eaffcb01c10ecf4ab60eaef5e35234a1dba4d2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 months agoCleanup duplicated code 13/314313/2 accepted/tizen/unified/20240711.011522 accepted/tizen/unified/dev/20240711.085752 accepted/tizen/unified/x/20240711.084621
Minje Ahn [Wed, 10 Jul 2024 05:15:40 +0000 (14:15 +0900)]
Cleanup duplicated code

Change-Id: I0dc938d66b8fd70b1cb051758506ea47cabb285f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 months agoRemove unused parameters 96/313996/1 accepted/tizen/unified/20240708.103320 accepted/tizen/unified/dev/20240709.043423 accepted/tizen/unified/x/20240709.014203
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>
5 months agoRemove unnecessary executable permissions 72/312472/1 accepted/tizen/unified/20240612.100028 accepted/tizen/unified/dev/20240620.005453 accepted/tizen/unified/toolchain/20240624.121459 accepted/tizen/unified/x/20240612.110459 accepted/tizen/unified/x/asan/20240625.092516
Seungbae Shin [Mon, 10 Jun 2024 12:10:37 +0000 (21:10 +0900)]
Remove unnecessary executable permissions

Change-Id: Ic55865a6e509a7a43dc40db232a134e445832bfd

5 months agoFix unreachable code 02/312402/1 accepted/tizen/unified/20240611.162825 accepted/tizen/unified/x/20240612.025933
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>
5 months agoAppend list directly 75/311175/3
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>
5 months agoUse media-util APIs 74/311174/3
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>
5 months agoMove table creation function to media-svc-db-utils 69/311169/5
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>
5 months agoAdd sql_autoptr type 38/310838/3
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>
6 months agoFix sign-compare 33/310833/1 accepted/tizen/unified/20240509.124645 accepted/tizen/unified/toolchain/20240513.061309 accepted/tizen/unified/x/20240510.061428
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>
6 months agoFix 'start_pos' > 'end_pos' issue 21/310721/3 accepted/tizen/unified/20240508.124556 accepted/tizen/unified/20240508.150746 accepted/tizen/unified/x/20240509.044722
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>
6 months agoRemove folder_modified_time field 11/310211/2 accepted/tizen/unified/20240425.114254 accepted/tizen/unified/toolchain/20240427.045647 accepted/tizen/unified/x/20240426.050426
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>
6 months agoFix recorded_date error 99/309699/1 accepted/tizen/unified/20240422.153120 accepted/tizen/unified/x/20240423.053021
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>
6 months agoAdd missing code related recorded_date 41/309641/1 accepted/tizen/unified/20240415.170313 accepted/tizen/unified/x/20240416.023002
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>
6 months agoRename _media_svc_sql_prepare_to_step_### 54/309454/2 accepted/tizen/unified/20240412.141448 accepted/tizen/unified/x/20240415.014013
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>
6 months agoRollback recorded_date for web TC 53/309453/2
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>
6 months agoModify to use sqlite3_free in each functions 43/309443/2
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>
7 months agoUse %Q instead of '%q' 32/309232/2 accepted/tizen/unified/20240409.135550 accepted/tizen/unified/20240409.155856 accepted/tizen/unified/x/20240411.011815
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>
7 months agoRepackage sources 40/308840/2 accepted/tizen/unified/20240403.095045 accepted/tizen/unified/x/20240404.061933
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>
7 months agoCorrect the type 82/308582/2 accepted/tizen/unified/20240402.061306 accepted/tizen/unified/x/20240402.093414
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>
7 months agoChange DB field name to orientation from media_orientation 13/308213/1 accepted/tizen/unified/20240321.142406 accepted/tizen/unified/20240321.155959 accepted/tizen/unified/x/20240326.073458
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>
7 months agoFix build error for product TV 80/308180/2 accepted/tizen/unified/20240320.110714 accepted/tizen/unified/20240320.151931
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

7 months agoRemove deprecated fields 97/307797/5
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>
7 months agoRemove bundle insert 84/308184/3
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>
7 months agoFix title being inserted as an empty string 84/307984/4
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>
7 months agoRemove query length checker 69/307669/2
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>
7 months agoMerge "Use sql function instead" into tizen accepted/tizen/unified/20240313.133515 accepted/tizen/unified/20240313.135007 accepted/tizen/unified/x/20240314.073324
Minje ahn [Tue, 12 Mar 2024 03:01:50 +0000 (03:01 +0000)]
Merge "Use sql function instead" into tizen

7 months agoRemove default album info from image type 36/307536/1
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>
7 months agoUse sql function instead 03/307503/2
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>
7 months agoCleanup _media_svc_extract_audio_metadata 81/307481/4
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>
8 months agoDelete unreachable case 78/307478/1
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>
8 months agoRemove TYER value checker 34/306934/5
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>
8 months agoModify _media_svc_extract_book_metadata() 68/307468/2
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>
8 months agoCleanup header 41/307241/4 accepted/tizen/unified/20240308.174235 accepted/tizen/unified/x/20240311.100113
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>
8 months agoUse ms_user_get_root_length 21/307221/2
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>
8 months agoAdd string vaild function 10/307210/3
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>
8 months agoUse g_strlcpy, g_strlcat directly 00/307200/1
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>
8 months agoUse tzplatform API directly 98/307198/1
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>
8 months agoUse MS_STRING_VALID instead 20/306820/1 accepted/tizen/unified/20240304.123038 accepted/tizen/unified/toolchain/20240311.065404 accepted/tizen/unified/x/20240305.021719
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>
8 months agoUse get_image_info instead 65/306365/2 accepted/tizen/unified/20240226.134005 accepted/tizen/unified/x/20240226.135035
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>
8 months agoRemove unnecessary handle parameter 58/305958/2 accepted/tizen/unified/20240216.161324 accepted/tizen/unified/x/20240220.150012
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>
9 months agoUse filename instead of path 14/305814/1 accepted/tizen/unified/20240214.163957 accepted/tizen/unified/x/20240219.013852
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>
9 months agoRemove unused defines 00/305800/1
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>
9 months agoRemove unused buildrequires 94/305794/1
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>
9 months agoFix missing delimit 47/305747/1 accepted/tizen/unified/20240207.171615 accepted/tizen/unified/x/20240208.022953
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>
9 months agoRestore some fields for TC 27/305727/1
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>
9 months agoUse g_compute_checksum_for_string instead 81/305681/4
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>
9 months agoRestore recorded_date temporarily 64/305564/4
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>
9 months agoFix build error 32/305532/1
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>
9 months agoUpdate metadata extract logic 09/304909/2
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>
9 months agoUpdate media-thumbnail error type 33/304833/1
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>
9 months agoRemove deprecated image meta function 31/304831/1
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>
9 months agoRemove storage type 91/304791/2
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>
9 months agoRemove duplicated defines 41/304641/1 accepted/tizen/unified/20240123.165913 accepted/tizen/unified/x/20240205.063934
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>
9 months agoRemove contact in boilerplate 79/304479/1 accepted/tizen/unified/20240119.021430
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>
10 months agoRemove scanner-v2 related plugin APIs 48/303348/2 accepted/tizen_unified_riscv accepted/tizen/unified/20231228.165738 accepted/tizen/unified/riscv/20240103.054618
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>
10 months agoRemove the logic to update metadata when changing language 41/303341/1 accepted/tizen/unified/20231227.170456
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>
10 months agoCleanup plugin APIs 62/303162/1
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>
10 months agoRemove CDIS 75/302875/1 accepted/tizen/unified/20231219.041315 accepted/tizen/unified/20231219.160326 accepted/tizen/unified/riscv/20231219.070938
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>
10 months agoRemove OMA DRM related code 71/302871/2
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>
11 months ago[ACR-1804] Remove pinyin 82/302282/1 accepted/tizen/unified/20231207.171713
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>
15 months agoRemove pinyin converter 02/295802/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.093431 accepted/tizen/unified/20230731.175251 tizen_8.0_m2_release
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>
19 months agoChange '%q' to %Q 62/288462/2 accepted/tizen/unified/20230316.045746
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>
20 months agoRemove unused DB fields 98/288498/1 accepted/tizen/unified/20230220.174456
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>
2 years agoChange folder_id to row id instead of uuid 42/282842/4 accepted/tizen/unified/20221102.020548
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>
2 years agoRemove storage_id parameter 29/282829/2
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>
2 years agoFix crash issue 97/282897/2 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062818 accepted/tizen/7.0/unified/hotfix/20221116.105406 accepted/tizen/unified/20221013.130855 tizen_7.0_m2_release
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>
2 years agoFix check_db not working properly 09/282809/3
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>
2 years agoRemove user version 24/281424/2 accepted/tizen/unified/20220920.110709
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>
2 years agoFix wrong error type 34/280434/1 accepted/tizen/unified/20220831.023501 submit/tizen/20220830.232907
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>
2 years agoAdd default thumb size 19/280419/1
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>
2 years agoFix buffer overflow 87/276287/2 accepted/tizen/unified/20220616.141911 submit/tizen/20220615.081536
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>
2 years agoDisable podofo logging 86/274686/1 accepted/tizen/unified/20220603.141253 submit/tizen/20220509.024432 submit/tizen/20220602.230613
Seungbae Shin [Fri, 6 May 2022 04:21:05 +0000 (13:21 +0900)]
Disable podofo logging

Change-Id: I054b8a9563051e4fc158efa0021f69955cb7a0f4

2 years agoRefactoring ebook plugin 49/273249/16
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

2 years agoAdd plugin APIs for ebook db 75/272975/7 accepted/tizen/unified/20220501.223620 submit/tizen/20220428.022151
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>
3 years agoSeparate functions that use podofo 93/263393/5 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.115503 accepted/tizen/unified/20210903.083033 submit/tizen/20210903.013438 submit/tizen/20211210.040928 submit/tizen/20220103.220317 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release
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>
3 years agoRefactoring ebook keyword search 52/261752/9 accepted/tizen/unified/20210804.043649 submit/tizen/20210804.011518
Seungbae Shin [Fri, 23 Jul 2021 03:44:16 +0000 (12:44 +0900)]
Refactoring ebook keyword search

Change-Id: If676f1e2c0564789f4c15900ec4e764903b35fa1

3 years agoAdd to search ebooks with keywords 90/261590/5
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>
3 years agoFix coverity issue 67/261667/2 accepted/tizen/unified/20210723.122801 submit/tizen/20210722.085241
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>
3 years agoImprove __media_svc_get_media_type() 36/261436/4 submit/tizen/20210722.043131
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>
3 years agoUse media type instead of category 35/261435/1
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>
3 years agoRemove unnecessary parameter 63/261263/1 accepted/tizen/unified/20210716.131213 submit/tizen/20210716.025629
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>
3 years ago[ACR-1635] Support ebook format 28/259428/7
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>
3 years agoVersion up (0.4.19 to 0.4.20) 40/257840/1 accepted/tizen/unified/20210505.141434 accepted/tizen/unified/20210607.124357 submit/tizen/20210504.055108 submit/tizen/20210506.231820 submit/tizen/20210606.231136 submit/tizen/20210722.054828
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>
3 years agoImprove mime type verification 88/257788/8
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>
3 years agoReinforce readability 87/257787/3
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>
3 years agoFix minor issue 68/257368/5 accepted/tizen/unified/20210428.040435 submit/tizen/20210427.230809 submit/tizen/20210427.230831 submit/tizen/20210428.231245
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>
3 years agoRemove __media_svc_resize_artwork() 63/257163/4
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>
3 years agoImprove GPS parsing function 75/256675/3 accepted/tizen/unified/20210420.090055 submit/tizen/20210420.014336 submit/tizen/20210420.041000
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>
3 years agoFix GPS bug 48/256548/3 accepted/tizen/unified/20210407.100449 submit/tizen/20210407.002142
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>
3 years agoFix invalid suffix on literal 56/256456/2
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>
3 years agoFix double free 55/256455/2 accepted/tizen/unified/20210406.000333 submit/tizen/20210405.002942
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>
3 years agoMerge "Version up (0.4.14 to 0.4.15)" into tizen accepted/tizen/unified/20210325.122653 submit/tizen/20210324.042524
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

3 years agoVersion up (0.4.14 to 0.4.15) 14/255714/1
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>
3 years agoFix memory leak 50/255650/4
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>
3 years agoChange GPtrArray to GList to improve readability 48/255648/4
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>
3 years agoSkip albumart extraction when scanning USB storage 56/249656/2 accepted/tizen/unified/20201218.124451 submit/tizen/20201217.030143
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>
3 years agoSeparate album art extraction 11/248711/2 accepted/tizen/unified/20201209.124857 submit/tizen/20201208.235402
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>
4 years agoFix tainted data and minor change 43/244143/3 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121137 accepted/tizen/6.0/unified/hotfix/20201103.002736 accepted/tizen/unified/20200917.055759 submit/tizen/20200916.012329 submit/tizen/20200917.004955 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
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