platform/core/multimedia/libmedia-service.git
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>
10 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

4 years agoVersion Up (0.4.12 -> 0.4.13) 05/243805/1 accepted/tizen/unified/20200911.043214 submit/tizen/20200910.074805
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>
4 years agoFix external storage related code 74/243774/1
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>
4 years agoRollback media-scan-extractor-v2 63/243663/1 accepted/tizen/unified/20200910.123942 submit/tizen/20200909.063454
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>
4 years agoUse GPtrArray in ms_get_null_scan_folder_list() 87/240387/1 accepted/tizen/unified/20200811.050323 submit/tizen/20200807.062206
Minje Ahn [Thu, 6 Aug 2020 03:56:30 +0000 (12:56 +0900)]
Use GPtrArray in ms_get_null_scan_folder_list()

Change-Id: I731d525fc6616cae931611bdf6c9601065ec5027
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoMerge get_extract_list() and update_one_extract_item() 84/239784/2 accepted/tizen/unified/20200804.142414 submit/tizen/20200803.055908
Minje Ahn [Wed, 29 Jul 2020 23:09:07 +0000 (08:09 +0900)]
Merge get_extract_list() and update_one_extract_item()

This patch only affects media-scanner-v2.

Change-Id: I1df8babba20335f2982ab7e5f9512a0051ab0483
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove query_do_update_list() 66/238966/1 accepted/tizen/unified/20200724.124245 submit/tizen/20200722.015458
Minje Ahn [Tue, 21 Jul 2020 01:01:06 +0000 (10:01 +0900)]
Remove query_do_update_list()

Modified update_one_extract_item() function to update DB directly.
So there is no need to call query_do_update_list() for update.
This patch only affects media-scanner-v2.

Change-Id: I1bacc8ad90eb97bd32fd95fe2b1ab127c3a65670
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unnecessary plugin API 74/238474/2 accepted/tizen/unified/20200717.124754 submit/tizen/20200715.035035
Minje Ahn [Tue, 14 Jul 2020 08:00:42 +0000 (17:00 +0900)]
Remove unnecessary plugin API

1. Remove plugin APIs that are no longer used.
2. Remove unnecessary parameters.

Change-Id: I51df4617e62361189646bcc84684af66d2473e66
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoAdjust space 23/238123/1 accepted/tizen/unified/20200709.212819 submit/tizen/20200709.031615
Minje Ahn [Wed, 8 Jul 2020 23:27:24 +0000 (08:27 +0900)]
Adjust space

Change-Id: I339d7d81ad6728df2291534dd12a562e4328b334
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoCorrect indentation 23/237523/2 accepted/tizen/unified/20200706.133932 submit/tizen/20200702.014328 submit/tizen/20200705.232724
Minje Ahn [Wed, 1 Jul 2020 05:37:27 +0000 (14:37 +0900)]
Correct indentation

Change-Id: Ic7a094f60c7fad8acbf886cf09b1769ee7396c8c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove plugin API for folder batch insertion 94/237294/5 accepted/tizen/unified/20200630.131151 submit/tizen/20200630.065716
Minje Ahn [Mon, 29 Jun 2020 01:21:28 +0000 (10:21 +0900)]
Remove plugin API for folder batch insertion

This patch changes media-scanner-v2 to write directly to media.db.
It makes better performance than bulk insert through IPC.

Change-Id: Ic8c54363a9f9e7366a2506e57f1e9ab7834bc9f1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove -Wno-deprecated-declarations option 87/236787/4 accepted/tizen/unified/20200624.130230 submit/tizen/20200623.070108
hj kim [Mon, 22 Jun 2020 05:56:55 +0000 (14:56 +0900)]
Remove -Wno-deprecated-declarations option

Change-Id: Ic23d360d919d9319fdae088a315b518152f11bbe

4 years agoMerge "Use g_date_time_new_from_iso8601() instead" into tizen
hj kim [Tue, 23 Jun 2020 07:05:32 +0000 (07:05 +0000)]
Merge "Use g_date_time_new_from_iso8601() instead" into tizen

4 years agoMerge "media_svc_refresh_item cleanup" into tizen
hj kim [Tue, 23 Jun 2020 07:05:20 +0000 (07:05 +0000)]
Merge "media_svc_refresh_item cleanup" into tizen

4 years agoUse g_date_time_new_from_iso8601() instead 84/236784/2
Minje Ahn [Mon, 22 Jun 2020 05:34:21 +0000 (14:34 +0900)]
Use g_date_time_new_from_iso8601() instead

g_time_val_from_iso8601 has been deprecated since version 2.62 and should not be used in newly-written code.
GTimeVal is not year-2038-safe. Use g_date_time_new_from_iso8601() instead.

Change-Id: I7835be133dd868d8fafc3f90e52f2ecafc295020
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove document image 94/236294/1
Minje Ahn [Tue, 16 Jun 2020 06:17:00 +0000 (15:17 +0900)]
Remove document image

Change-Id: I655291333e696e4fef3e1274f17dfa77267e4697
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agomedia_svc_refresh_item cleanup 67/235467/1
Minje Ahn [Thu, 4 Jun 2020 23:15:28 +0000 (08:15 +0900)]
media_svc_refresh_item cleanup

Change-Id: I24022821a1163915d34a1bd30e2b955744103d00
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix memory leak 32/235232/2 accepted/tizen/unified/20200604.164549 submit/tizen/20200603.011259
Minje Ahn [Wed, 3 Jun 2020 02:30:49 +0000 (11:30 +0900)]
Fix memory leak

Fix memory leak for below:
https://review.tizen.org/gerrit/c/platform/core/multimedia/libmedia-service/+/235209

Change-Id: I1c53f8d7885b82a22d77c763dbad9797726f3972
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix folder scanning error 09/235209/2
Minje Ahn [Tue, 2 Jun 2020 23:07:25 +0000 (08:07 +0900)]
Fix folder scanning error

Fixed an issue where validity was not normally updated when the modification time of the file was changed.

Change-Id: Iddb6288fab3c921a23d54bac809ee3c9601a5fc8
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix thumbnail format PNG to JPG for improve performace 64/233764/5 accepted/tizen/unified/20200601.051622 submit/tizen/20200529.021017
Minje Ahn [Tue, 19 May 2020 04:26:46 +0000 (13:26 +0900)]
Fix thumbnail format PNG to JPG for improve performace

PNG needs more time when encoding/decoding.

Change-Id: I312d0d62924f28c612baadc1bb94d886530e0b26
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove getting of xmp data 89/231589/1 accepted/tizen/unified/20200423.161052 submit/tizen/20200423.080104
Minje Ahn [Thu, 23 Apr 2020 00:34:34 +0000 (09:34 +0900)]
Improve getting of xmp data

Change-Id: Icf42af7e90d32155912f3bdb3e38ebaf1cb75b2b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoCheck size before allocation 16/231416/1 accepted/tizen/unified/20200422.215425 submit/tizen/20200422.001719
Minje Ahn [Wed, 22 Apr 2020 01:51:00 +0000 (10:51 +0900)]
Check size before allocation

Change-Id: Ie50555a55b2d8abc35321ccafd344b7416ac595f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange resize function to create rotated thumbnail 73/230973/1 accepted/tizen/unified/20200420.142655 submit/tizen/20200416.091150 submit/tizen/20200419.223245
Minje Ahn [Thu, 16 Apr 2020 08:41:35 +0000 (17:41 +0900)]
Change resize function to create rotated thumbnail

Change-Id: I9085abe318e3243ae06fd32ab1b5d228c3ca73b3
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUse g_new instead of calloc 86/230386/1 accepted/tizen/unified/20200411.115615 submit/tizen/20200410.073041
Minje Ahn [Thu, 9 Apr 2020 23:33:42 +0000 (08:33 +0900)]
Use g_new instead of calloc

Change-Id: I6e1f3a1f885c7fc8b3fee4024634d750d5535d35
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRename db related define 65/230265/3 accepted/tizen/unified/20200410.015550 submit/tizen/20200409.074448
Minje Ahn [Thu, 9 Apr 2020 05:04:33 +0000 (14:04 +0900)]
Rename db related define

Change-Id: I9c12d2e14b1ef6aef53c939337e467a771debf00
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUse g_free instead of macro 55/230255/1
Minje Ahn [Thu, 9 Apr 2020 04:07:41 +0000 (13:07 +0900)]
Use g_free instead of macro

Change-Id: I600ed5f86d2027f8866e759ae8ff78254d244cca
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange function name 14/229414/3 accepted/tizen/unified/20200402.155619 accepted/tizen/unified/20200403.153132 submit/tizen/20200401.074846 submit/tizen/20200403.035052
Minje Ahn [Wed, 1 Apr 2020 03:17:35 +0000 (12:17 +0900)]
Change function name

Change-Id: I1d83a7faf9c02d50b76869a28efbc0dfb43fac06
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix format error 33/228833/1 accepted/tizen/unified/20200331.030833 submit/tizen/20200325.234531
hj kim [Thu, 26 Mar 2020 04:03:30 +0000 (13:03 +0900)]
Fix format error

Change-Id: Iae6a18a8b9324429ae288d27b7dab74e44d42b8d

4 years agoFix format error 04/228804/1
hj kim [Thu, 26 Mar 2020 01:03:23 +0000 (10:03 +0900)]
Fix format error

Change-Id: I70cd604721fdbe275d4a22c02eb80bcf0e7e4264

4 years agoMove some struct and enum defines from header file 36/228636/5
hj kim [Tue, 24 Mar 2020 08:29:12 +0000 (17:29 +0900)]
Move some struct and enum defines from header file

Change-Id: I92d05bb314633d358b98c0d78477c1d4a607e472

4 years agoRearrange included header files 34/228634/7
hj kim [Tue, 24 Mar 2020 08:03:12 +0000 (17:03 +0900)]
Rearrange included header files

Change-Id: I2996c759ab5ecdc6768642e448d5a772415edd9d

4 years agoApply tizen coding rule for static API 25/228625/8
hj kim [Tue, 24 Mar 2020 07:39:00 +0000 (16:39 +0900)]
Apply tizen coding rule for static API

Change-Id: Ia2089d9bbd9dea4b5d268e7c54c1e6d88dc29f95

4 years agoFix underflow issue. 86/228686/8
hj kim [Wed, 25 Mar 2020 00:28:10 +0000 (09:28 +0900)]
Fix underflow issue.

Change-Id: Ie42cec442f8c57668b77d8d0682e556787e6c98e

4 years agoMove some #define from header file 24/228624/1
hj kim [Tue, 24 Mar 2020 07:34:21 +0000 (16:34 +0900)]
Move some #define from header file

Change-Id: I5b04e3a32a090733f234f5ed26a28b546bca15b8

4 years agoFolder related functions cleanup 68/227768/2 accepted/tizen/unified/20200320.074815 submit/tizen/20200317.020149 submit/tizen/20200319.005828 submit/tizen/20200320.001353
Minje Ahn [Mon, 16 Mar 2020 08:19:40 +0000 (17:19 +0900)]
Folder related functions cleanup

1. Remove duplicate query
2. Use check function instead of get_folder_id()
3. Improve parent folder checking function

Change-Id: Ieb06a829f6890401c3ccf75c775aa2da844bd1d8
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUse new image thumbnail extracting APIs provided by libmedia-thumbnail 03/227403/7 accepted/tizen/unified/20200318.130543 submit/tizen/20200316.031954
hj kim [Thu, 12 Mar 2020 00:48:18 +0000 (09:48 +0900)]
Use new image thumbnail extracting APIs provided by libmedia-thumbnail

Change-Id: I3b8c5879a645e98ee99dd7ba21c8f08c83dd2b59

4 years agoUse new video thumbnail extracting API provided by libmedia-thumbnail and Remove... 36/226836/11
hj kim [Fri, 6 Mar 2020 01:39:52 +0000 (10:39 +0900)]
Use new video thumbnail extracting API provided by libmedia-thumbnail and Remove related codes.

Duplicated thumbnail extracing codes were unified into libmedia-thumbnail.

Change-Id: Ied325bbf74c669dba153fd3a34474e9538ad34e8

4 years agoMerge "check src before doing g_strlcpy and g_strlcat" into tizen accepted/tizen/unified/20200315.214848 submit/tizen/20200313.001656 submit/tizen/20200313.040349
hj kim [Fri, 13 Mar 2020 06:37:21 +0000 (06:37 +0000)]
Merge "check src before doing g_strlcpy and g_strlcat" into tizen

4 years agouuid related fuctions cleanup 09/227609/1
Minje Ahn [Fri, 13 Mar 2020 06:05:17 +0000 (15:05 +0900)]
uuid related fuctions cleanup

Change-Id: Ibf6c1c4a9d80e5edc66ef1b47ea7c80506410e4e
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agocheck src before doing g_strlcpy and g_strlcat 92/227592/7
hj kim [Fri, 13 Mar 2020 04:15:59 +0000 (13:15 +0900)]
check src before doing g_strlcpy and g_strlcat

if src is NULL, get " GLib-CRITICAL **: g_strlcpy: assertion 'src != NULL' failed"

Change-Id: Ia14aec3378bb7dd45b26b740ae4a8ff53054a092

4 years agoFolder related functions cleanup 63/227563/2
Minje Ahn [Fri, 13 Mar 2020 00:59:11 +0000 (09:59 +0900)]
Folder related functions cleanup

Change-Id: Ief056a3f17116ebfff3fd8ada38f55f432676018

4 years agoCode cleanup 43/227443/1
Minje Ahn [Thu, 12 Mar 2020 04:07:00 +0000 (13:07 +0900)]
Code cleanup

1. Simplify media existence check function
2. Initialize the noti list after publish

Change-Id: I08ae9955eb1b7adcfdd02c73aa22e1188a118f08
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoMove static variable into function 81/227281/2 accepted/tizen/unified/20200312.234345 submit/tizen/20200311.070630
hj kim [Wed, 11 Mar 2020 05:25:57 +0000 (14:25 +0900)]
Move static variable into function

Change-Id: I48ab0ca93bef283470bd4e1007e71086fbafbe31

4 years agoFix wrong error value check 70/227270/2
hj kim [Wed, 11 Mar 2020 04:49:48 +0000 (13:49 +0900)]
Fix wrong error value check

Change-Id: I64632bc46092b3fcafc98dba4eca778f089c5aad

4 years agoChanged default thumbnail format to png 75/227275/3
Minje Ahn [Wed, 11 Mar 2020 05:08:00 +0000 (14:08 +0900)]
Changed default thumbnail format to png

Change to save thumbnails as png, regardless of the format of the original image.

Change-Id: I828a21f72b8c4a836c3f55c23b3966cfbc20819b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unnecessary return value 85/227185/3
Minje Ahn [Tue, 10 Mar 2020 08:22:43 +0000 (17:22 +0900)]
Remove unnecessary return value

Change-Id: I8d14b3f36ea480f899fa0e34aea6d5031552ee25
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove default setting function 68/226868/7 accepted/tizen/unified/20200311.130942 submit/tizen/20200310.032628
Minje Ahn [Fri, 6 Mar 2020 05:12:15 +0000 (14:12 +0900)]
Remove default setting function

1. To fix memory leak
2. To fix the behavior of updating metadata

Change-Id: I3b6e870788ee3af4f561107beb41bd5eb72226e1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove function to get storage id 58/226758/3 submit/tizen/20200306.013725
Minje Ahn [Thu, 5 Mar 2020 07:09:42 +0000 (16:09 +0900)]
Improve function to get storage id

Change-Id: I2e52a2b5a86f58fe2e921bccbd192754b3915bdd
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove parent path validation function 16/226716/3
Minje Ahn [Thu, 5 Mar 2020 04:48:46 +0000 (13:48 +0900)]
Improve parent path validation function

Added len +1 to get the external root path.
 - USB root : MEDIA_ROOT_PATH_EXTERNAL/{storage-uuid}/
 - MMC root : MEDIA_ROOT_PATH_EXTERNAL/SDCard{port_num}/

Change-Id: I983f9a69bf3a3434766a511e7724e24e9ddf11fd
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove VD commercial storage type 74/226674/1
Minje Ahn [Thu, 5 Mar 2020 00:42:45 +0000 (09:42 +0900)]
Remove VD commercial storage type

Change-Id: I49095359214d8c81353a7643aaf323bb40e68dba
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unnecessary triggers 21/226621/1 accepted/tizen/unified/20200305.123304 submit/tizen/20200305.003258
Minje Ahn [Wed, 4 Mar 2020 07:18:30 +0000 (16:18 +0900)]
Remove unnecessary triggers

Change-Id: Ib4499f19d4a85b119e825dfcfafadaa850b08b41
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unused columns 03/226603/1
Minje Ahn [Wed, 4 Mar 2020 06:02:59 +0000 (15:02 +0900)]
Remove unused columns

Change-Id: I093349bd9f5dc47e65af9d966509883a4c6ea3e1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove VD commercial media type 94/226594/2
Minje Ahn [Wed, 4 Mar 2020 05:22:45 +0000 (14:22 +0900)]
Remove VD commercial media type

Change-Id: I643c46f2484c3fd1a56ba130bce8404c6158201d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove sync_status 85/226585/2
Minje Ahn [Wed, 4 Mar 2020 04:45:34 +0000 (13:45 +0900)]
Remove sync_status

Remove 'sync_status' that is MCD commercial column
"sync_status" was used to indicate whether the content information between mobile and wearable has been synced.

Change-Id: Ied19046667a41ee388dc3a15ff11c4004f53b221
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>