platform/core/multimedia/media-server.git
3 years agoChange variable name 28/243228/3
Minje Ahn [Fri, 4 Sep 2020 06:02:42 +0000 (15:02 +0900)]
Change variable name

Change-Id: I1a16c2e2f10f7bcc9980f77c51433d883f786e4d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoCheck the number of children of GVariant 05/243205/3
Minje Ahn [Fri, 4 Sep 2020 02:18:20 +0000 (11:18 +0900)]
Check the number of children of GVariant

If there is no external storage mounted, 'GetDeviceList' will return an empty array.
So, added exception handling for this case.

Change-Id: Ia34e8d5ce97629ab35cceb31fd064ff8b955b313
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoImprove batch insert thread 25/243125/4
Minje Ahn [Thu, 3 Sep 2020 08:06:49 +0000 (17:06 +0900)]
Improve batch insert thread

Change-Id: Ib191aa902afc19a2e1cc22d0cd3801894bfd6c45
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoChange return type int to void 66/243066/3
hj kim [Thu, 3 Sep 2020 02:05:37 +0000 (11:05 +0900)]
Change return type int to void

Change-Id: I714b38fb8ec8ba741b9ecfdbe6bd7326582a87ab

3 years agoImprove GAsyncQueue related functions 62/243062/9
Minje Ahn [Thu, 3 Sep 2020 01:21:23 +0000 (10:21 +0900)]
Improve GAsyncQueue related functions

Change-Id: Ic702b52f6860c318021d132735e30fb780b1ff8a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoVersion Up (0.4.13 -> 0.4.14) 40/242840/4 accepted/tizen/unified/20200903.151744 submit/tizen/20200903.010252
hj kim [Tue, 1 Sep 2020 07:02:12 +0000 (16:02 +0900)]
Version Up (0.4.13 -> 0.4.14)

Change-Id: I9553906e2aee1efdaed5cc5a97d7611a882325a8

3 years agoBug fix regarding MS_MSG_DIRECTORY_SCANNING_CANCEL 82/242982/3
hj kim [Wed, 2 Sep 2020 07:30:03 +0000 (16:30 +0900)]
Bug fix regarding MS_MSG_DIRECTORY_SCANNING_CANCEL

Regarding the MS_MSG_DIRECTORY_SCANNING_CANCEL request from the client, the scanner doesn't need to send a response for this task,
because client gets the result for this request by checking from its own request list.

Change-Id: If46eb7f0825ce9f19e8ba09c7588ec39f5eb94f7

3 years agoFix multiple cancellation bug 73/242973/5
Minje Ahn [Wed, 2 Sep 2020 06:46:00 +0000 (15:46 +0900)]
Fix multiple cancellation bug

Modified to cancel only one item.

Change-Id: I202d5c4093b6af420a4120c7d919dd16b384b1d7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoChange parameter type (int -> ms_msg_type_e) 38/242838/3
hj kim [Tue, 1 Sep 2020 06:57:21 +0000 (15:57 +0900)]
Change parameter type (int -> ms_msg_type_e)

Change-Id: I810279e05c6e1afd1f36c721497360a0f3ae64ce

3 years agoUse GQueue instead of GPtrArray in scanner v1 91/242691/3
Minje Ahn [Mon, 31 Aug 2020 00:45:48 +0000 (09:45 +0900)]
Use GQueue instead of GPtrArray in scanner v1

Change-Id: I2c5fdf15d6e88fa5995ca98e6ea8d4db5df1dd0e
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoMerge valid_item functions 56/242556/1
Minje Ahn [Fri, 28 Aug 2020 00:57:14 +0000 (09:57 +0900)]
Merge valid_item functions

Change-Id: I82b3b23bc6dad7fbbe03bba7f1fda3ca0fac2e24
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoVersion Up (0.4.12 -> 0.4.13) 77/242077/1 accepted/tizen/unified/20200826.133156 submit/tizen/20200820.234531
hj kim [Mon, 24 Aug 2020 04:39:45 +0000 (13:39 +0900)]
Version Up (0.4.12 -> 0.4.13)

Change-Id: I56749c5833f35433ab7dad3f9944b3de0d54e978

3 years agoUse ms_register_start/end() directly 23/241923/3
Minje Ahn [Thu, 20 Aug 2020 22:38:17 +0000 (07:38 +0900)]
Use ms_register_start/end() directly

Use ms_register_start/end() directly instead of ms_batch_commit_disable/enable().

ms_batch_commit_enable/disable() became unnecessary due to removal of ms_validation_start/end() from scanners v1 and v2.

Change-Id: I5d59b9d409c829f9ede29757367c5ba25d8f2d0f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove unnecessary comments 61/241461/1
Minje Ahn [Thu, 20 Aug 2020 09:08:44 +0000 (18:08 +0900)]
Remove unnecessary comments

Change-Id: If4a77d81f27fb7835ee8a39fead52e4da91d7f84
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove unnecessary logs 98/241398/1 submit/tizen/20200820.053439 submit/tizen/20200820.222144
Minje Ahn [Thu, 20 Aug 2020 00:22:10 +0000 (09:22 +0900)]
Remove unnecessary logs

Change-Id: I0acb3e552b2bb0e587025633b6b3c95fdbcb2956
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoFix typo 64/241264/3
Minje Ahn [Wed, 19 Aug 2020 01:34:08 +0000 (10:34 +0900)]
Fix typo

Change-Id: Ia091b9dac4f5ee180ebbc5b339dce1eabac0e0cc
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoDevice info related functions cleanup 38/241238/9
Minje Ahn [Wed, 19 Aug 2020 00:39:05 +0000 (09:39 +0900)]
Device info related functions cleanup

Change-Id: I9b72d3ea1231b1fde09ce05c1badb69df899602a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoImprove ms_check_mounted_storage() 30/241030/9
Minje Ahn [Fri, 14 Aug 2020 02:22:06 +0000 (11:22 +0900)]
Improve ms_check_mounted_storage()

Change-Id: I83612e75ed089bcf00e6ca2c185c731f7e5973fe
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoImprove ms_storage_mount_status() 29/241029/4
Minje Ahn [Fri, 14 Aug 2020 02:20:53 +0000 (11:20 +0900)]
Improve ms_storage_mount_status()

Change-Id: Icaada27e87364d3a9f61f64ee831643193fb4b92
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoVersion Up (0.4.11 -> 0.4.12) 15/241015/1 accepted/tizen/unified/20200820.034638 submit/tizen/20200817.233206
hj kim [Thu, 13 Aug 2020 23:43:34 +0000 (08:43 +0900)]
Version Up (0.4.11 -> 0.4.12)

Change-Id: I82d2b80e8e917025c23d1051e21ba357691d771c

3 years agoApply definition for product mode code 43/240543/2
hj kim [Fri, 7 Aug 2020 08:22:47 +0000 (17:22 +0900)]
Apply definition for product mode code

Change-Id: Ia8a3cbebb5a50f16fc752e0831b853552f7ef8dd

3 years agoMinor changes 94/238594/15
hj kim [Wed, 15 Jul 2020 09:47:10 +0000 (18:47 +0900)]
Minor changes

Change-Id: If847e5bbf9fe4ab19072cb0b439f90b685ddf309

3 years agoUse g_snprintf() instead of ms_strappend() 58/240958/3
Minje Ahn [Thu, 13 Aug 2020 06:41:47 +0000 (15:41 +0900)]
Use g_snprintf() instead of ms_strappend()

Changed ms_strappend() to g_snprintf().
And removed ms_strappend().

Change-Id: If9dac5bed4a670abafaedcfa259feca871e30ffd
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoExtractor-v2 code cleanup 35/240935/4
Minje Ahn [Thu, 13 Aug 2020 02:46:47 +0000 (11:46 +0900)]
Extractor-v2 code cleanup

Change-Id: I9fa036e4b90abfebf951c54e73176aa5ac9af1cb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agomsc_directory_scan_thread() cleanup 14/240914/2
Minje Ahn [Wed, 12 Aug 2020 23:44:12 +0000 (08:44 +0900)]
msc_directory_scan_thread() cleanup

Change-Id: I29c970bf84afd078e6ed0229bc8ee4c10eb16c62
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove 'err' in msc_directory_scan_thread() 12/240912/1
Minje Ahn [Wed, 12 Aug 2020 23:22:53 +0000 (08:22 +0900)]
Remove 'err' in msc_directory_scan_thread()

Change-Id: Iedc9d6718b492a34a91bfa1a494029e0007ff1df
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoChange to use the value of scan_data directly 10/240910/3
Minje Ahn [Wed, 12 Aug 2020 23:07:06 +0000 (08:07 +0900)]
Change to use the value of scan_data directly

Change-Id: I2108eedff4d13dbe2645a2c4828a39bf9b54395d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoUse g_file_test instead of fopen 09/240909/1
Minje Ahn [Wed, 12 Aug 2020 23:03:24 +0000 (08:03 +0900)]
Use g_file_test instead of fopen

Change-Id: I18e9f8fdd7c267fdc5fcb2e436ab5d37c9851feb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove unused variable 07/240907/2
Minje Ahn [Wed, 12 Aug 2020 22:53:34 +0000 (07:53 +0900)]
Remove unused variable

Change-Id: I9e1c3ee74c7591cab666410300c98ffa5d92f568
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoImprove code regarding GCond for Scanning 06/240406/11
hj kim [Thu, 6 Aug 2020 05:50:45 +0000 (14:50 +0900)]
Improve code regarding GCond for Scanning

Change-Id: I35980814945d4abc9237dbc948503c523fd07192

3 years agoImprove __msc_check_stop_status() 97/240097/5
hj kim [Mon, 3 Aug 2020 08:14:53 +0000 (17:14 +0900)]
Improve __msc_check_stop_status()

Change-Id: I321f838d0ba624d47848c4df27d66db97a4851f3

3 years agoVersion Up (0.4.10 -> 0.4.11) 29/240529/2 accepted/tizen/unified/20200811.050326 submit/tizen/20200807.062206
hj kim [Fri, 7 Aug 2020 06:19:56 +0000 (15:19 +0900)]
Version Up (0.4.10 -> 0.4.11)

Change-Id: I2795fa11b29e2aa03cf8fdf4eb5b46dc182ad13c

3 years agoUse gdir instead of dirent 14/240414/3
Minje Ahn [Thu, 6 Aug 2020 06:44:27 +0000 (15:44 +0900)]
Use gdir instead of dirent

Change-Id: Ifeabe694124a802b9e730d150c47a19c6942673d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoImprove msc_directory_scan_thread() 50/239950/9
hj kim [Fri, 31 Jul 2020 02:18:38 +0000 (11:18 +0900)]
Improve msc_directory_scan_thread()

just rearrange codes to manage error cases first

Change-Id: Iadb63c23a2668cac0596aa8da99e55da750720e0

3 years agoUse GPtrArray in ms_get_null_scan_folder_list() 86/240386/1
Minje Ahn [Thu, 6 Aug 2020 03:55:34 +0000 (12:55 +0900)]
Use GPtrArray in ms_get_null_scan_folder_list()

Change-Id: Idb96498417e447a8703aebbd51969638d23ff4b2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoUse GPtrArray instead of GArray 84/240384/1
Minje Ahn [Thu, 6 Aug 2020 03:40:38 +0000 (12:40 +0900)]
Use GPtrArray instead of GArray

Change-Id: I65b727380726ff3e86318a6682272628b840a55f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoAdd define for trash folder checking 76/240376/1
Minje Ahn [Thu, 6 Aug 2020 01:59:09 +0000 (10:59 +0900)]
Add define for trash folder checking

Change-Id: Ibce480417a314bbc774447e64f3f7007b88ffd79
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoVersion Up (0.4.9 -> 0.4.10) 71/240071/2 accepted/tizen/unified/20200804.142411 submit/tizen/20200803.055908
hj kim [Mon, 3 Aug 2020 05:13:11 +0000 (14:13 +0900)]
Version Up (0.4.9 -> 0.4.10)

Change-Id: I49b65949bd063f22ca3f81c1c0cd4be4436d1093

3 years agoRemove unused codes regarding storage_type 61/240061/6
hj kim [Mon, 3 Aug 2020 02:47:37 +0000 (11:47 +0900)]
Remove unused codes regarding storage_type

Change-Id: I322ad45ba692a836bcfb00f657d05d5e245b346e

3 years agoImprove error check code 52/239952/5
hj kim [Fri, 31 Jul 2020 02:32:06 +0000 (11:32 +0900)]
Improve error check code

__msc_check_remain_space(uid) function only returns
MS_MEDIA_ERR_NOT_ENOUGH_SPACE, MS_MEDIA_ERR_DB_FULL_FAIL, MS_MEDIA_ERR_NONE

Change-Id: Idb72fb99aedcbab21b0aec02422b802660d0b8c4

3 years agoMerge "Merge get_extract_list() and update_one_extract_item()" into tizen
hj kim [Mon, 3 Aug 2020 05:59:00 +0000 (05:59 +0000)]
Merge "Merge get_extract_list() and update_one_extract_item()" into tizen

3 years agocheck the return value of function 'dlsym' 79/239979/4
chengyj1985 [Fri, 31 Jul 2020 07:48:52 +0000 (15:48 +0800)]
check the return value of function 'dlsym'

Change-Id: I79eeb96115e4b74fccec0f0073ae22bd03833c64

3 years agoFix to stop scanning when power off 43/239943/2
hj kim [Fri, 31 Jul 2020 01:01:49 +0000 (10:01 +0900)]
Fix to stop scanning when power off

Change-Id: I6232055f68d81ddeadcd8474d433d9687034d8ab

3 years agoImprove scanner main function 73/239873/3
hj kim [Thu, 30 Jul 2020 08:13:35 +0000 (17:13 +0900)]
Improve scanner main function

And remove unnecessary parameter of __msc_add_event_receiver()

Change-Id: Ic2c2c1ec4e6936e6f19bf51bec04484e28ac0acb

3 years agoRemove simple functions 11/239711/7
hj kim [Wed, 29 Jul 2020 06:33:05 +0000 (15:33 +0900)]
Remove simple functions

Change-Id: I2bad4293c809298a08ce88076939a06d93e0c13c

3 years agoremove unused vconf key 78/239878/1
chengyj1985 [Thu, 30 Jul 2020 08:15:34 +0000 (16:15 +0800)]
remove unused vconf key

Change-Id: I5f31ce65eb0f3610b578c4d3de921f75d59b039c

3 years agoMerge get_extract_list() and update_one_extract_item() 83/239783/4
Minje Ahn [Wed, 29 Jul 2020 23:08:36 +0000 (08:08 +0900)]
Merge get_extract_list() and update_one_extract_item()

This patch only affects media-scanner-v2.

Change-Id: Ib8e8a1a70e870d6faea89cddbe870c1767d0bf8b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoVersion Up (0.4.8 -> 0.4.9) 89/239689/3 accepted/tizen/unified/20200731.145817 submit/tizen/20200730.064507
hj kim [Wed, 29 Jul 2020 04:12:35 +0000 (13:12 +0900)]
Version Up (0.4.8 -> 0.4.9)

Change-Id: Idc2037ef0759c6b45c3da29da6fdfc593c64d8b7

3 years agoAdd static keyword 87/239687/1
hj kim [Wed, 29 Jul 2020 03:27:59 +0000 (12:27 +0900)]
Add static keyword

Change-Id: I94107c3c694f4a699d96a9d8890437b0caa99a20

3 years agoImprove msc_send_ready() and msc_send_result() functions 85/239685/3
hj kim [Wed, 29 Jul 2020 02:48:44 +0000 (11:48 +0900)]
Improve msc_send_ready() and msc_send_result() functions

Change-Id: Ifcfd19e06eeaf62bc1a542b82faf0540cd2e4d86

3 years agoFix bug for sending incorrect response for "cancel folder scanning" 35/239635/4
hj kim [Tue, 28 Jul 2020 09:04:11 +0000 (18:04 +0900)]
Fix bug for sending incorrect response for "cancel folder scanning"

The media-scanner doesn't need to send response for "scanning cancel" request.
clients manage their own list of scanning.
for the cancellation request, if the request is on the request list,
a client regards it as success, of false.

Change-Id: I8968707b4326a5ee2e7f69edaa47c0d17cd61e85

3 years agoAdd new functions to handle power off event 15/239615/7
hj kim [Tue, 28 Jul 2020 07:29:59 +0000 (16:29 +0900)]
Add new functions to handle power off event

And remove unnecessary "extern" and add static keyoword

Change-Id: I987810a424365bbc7d238610e123e929c658787b

3 years agoMove scanning related code to scan-v2.c 86/239586/11
hj kim [Tue, 28 Jul 2020 02:22:33 +0000 (11:22 +0900)]
Move scanning related code to scan-v2.c

and remove unnecessary extern

Change-Id: I2eb8ff459d88c52bd598c0946fab44b1aa8bfeb1

3 years agoAdd new function msc_remove_folder_extract_request() 88/239588/6
hj kim [Tue, 28 Jul 2020 03:10:42 +0000 (12:10 +0900)]
Add new function msc_remove_folder_extract_request()

code clean up for removing folder extract request.

Change-Id: Id1b5abca7b0916f7a4bf9a77f60b9c21c06503b3

3 years agoremove duplicated codes 10/239610/2
hj kim [Tue, 28 Jul 2020 06:32:27 +0000 (15:32 +0900)]
remove duplicated codes

init/deinit of scan_req_mutex2 is called in msc_init_scan_thread() and msc_deinit_scan_thread()

Change-Id: I1f9d4356be8a4427ba25413d871212087356480d

3 years agoRemove unnecessary parameter 79/239579/6
hj kim [Tue, 28 Jul 2020 01:49:15 +0000 (10:49 +0900)]
Remove unnecessary parameter

Change-Id: I6ea189c15f66bb6535728bf3cc13af2f02f6736d

3 years agoUse msc_push_scan_request() API instead of accessing queue directly 66/239466/7
hj kim [Mon, 27 Jul 2020 03:21:15 +0000 (12:21 +0900)]
Use msc_push_scan_request() API instead of accessing queue directly

And add parameter checking code.

Change-Id: Idf9bcf412271123b00d8518483d4a4dd5db28312

3 years agoSync register_thread code between scanner and scanner-v2 29/239329/12
hj kim [Fri, 24 Jul 2020 03:35:22 +0000 (12:35 +0900)]
Sync register_thread code between scanner and scanner-v2

both scanners do same thing in register_thread.
scanner-v2 codes were old one. so updated it.

Change-Id: Ia8dec97011cfbf59d9ce6506e7eae5fd44516f75

3 years agoImprove msc_register_thread() 35/239335/8
hj kim [Fri, 24 Jul 2020 04:50:25 +0000 (13:50 +0900)]
Improve msc_register_thread()

Change-Id: If9605d58e4a687728d4613f013da01b474a131bb

3 years agoSync batch insert code between scanner and scanner-v2 23/239323/8
hj kim [Fri, 24 Jul 2020 02:41:34 +0000 (11:41 +0900)]
Sync batch insert code between scanner and scanner-v2

- add some debug log
- Use GPtrArray instead of GArray
- bug fix when batch_insert is stopped due to power_off

Change-Id: I7b7837d50b701aac61c17c93e9c1c1b6ce2faca7

3 years agoRemove unnecessary code for TV Product mode 21/239321/5
hj kim [Fri, 24 Jul 2020 02:06:31 +0000 (11:06 +0900)]
Remove unnecessary code for TV Product mode

_USE_TVPD_MODE is always enabled for scanner-v2

Change-Id: I83ead7c703e2e83f59447f46f166bec6c8626d8e

3 years agoRename function and apply it to scanner-v2 60/239260/9
hj kim [Thu, 23 Jul 2020 07:36:17 +0000 (16:36 +0900)]
Rename function and apply it to scanner-v2

Change __msc_is_stop_needed() to __msc_is_power_off() because this function check only power status.
And msc_get_power_status() has been removed. _msc_is_power_off() can cover it.

Change-Id: Ib51109da141a4596ac67485d3bcdbaf5998dd619

3 years agoUse functions instead of setting value directly. And apply tizen coding rule 14/239314/5
hj kim [Fri, 24 Jul 2020 00:08:13 +0000 (09:08 +0900)]
Use functions instead of setting value directly. And apply tizen coding rule

Change-Id: If60290b803bbb74961127b4510833f386cd0def2

3 years agoRemove unused functions 15/239315/2
hj kim [Fri, 24 Jul 2020 00:17:49 +0000 (09:17 +0900)]
Remove unused functions

Change-Id: Icda82739039ad674abfda2b54e104ccef033c64a

3 years agoRemove query_do_update_list() 65/238965/1 accepted/tizen/unified/20200724.124247 submit/tizen/20200722.015458
Minje Ahn [Tue, 21 Jul 2020 01:00:45 +0000 (10:00 +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: Ic8a834eb1303636fb86f461d40226a2ce7ef2c56
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove unused functions in scanner-v2 32/238632/1 accepted/tizen/unified/20200717.124756 submit/tizen/20200715.035035
Minje Ahn [Thu, 16 Jul 2020 01:44:42 +0000 (10:44 +0900)]
Remove unused functions in scanner-v2

Change-Id: I0788f2105b9d23238d13857143bb5b3a06f85664
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove DB handle checker 59/238559/2
Minje Ahn [Wed, 15 Jul 2020 05:18:08 +0000 (14:18 +0900)]
Remove DB handle checker

ms_disconnect_db() checks for DB handle.

Change-Id: I545b5c8f5e5cca25c4254272276700b49ef43a8a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove unnecessary parameters 57/238557/1
Minje Ahn [Wed, 15 Jul 2020 05:15:39 +0000 (14:15 +0900)]
Remove unnecessary parameters

1. Remove unnecessary parameters
2. Remove unused code
3. Apply coding rule

Change-Id: I0e3688bc359d93c33044afede39b1f2e90d34d9f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove unnecessary plugin API 75/238475/1
Minje Ahn [Tue, 14 Jul 2020 08:02:55 +0000 (17:02 +0900)]
Remove unnecessary plugin API

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

Change-Id: I26b403d74c2194479af6369c3b7b13346840b728
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoFix typo 43/238143/1 accepted/tizen/unified/20200709.212821 submit/tizen/20200709.031615
hj kim [Thu, 9 Jul 2020 02:25:04 +0000 (11:25 +0900)]
Fix typo

Change-Id: Ic8f9c2f9cd22f86d0cb612392805a7572626b1d2

3 years agoImprove ms_read_db_tcp_socket() and remove unused funtion 44/237744/1
hj kim [Fri, 3 Jul 2020 07:29:17 +0000 (16:29 +0900)]
Improve ms_read_db_tcp_socket() and remove unused funtion

Change-Id: I144d78d13575283c3ff259b43da760b5ddbe43cd

3 years agoFlags cleanup 62/237662/3 accepted/tizen/unified/20200706.133934 submit/tizen/20200702.014328 submit/tizen/20200705.232724
Minje Ahn [Thu, 2 Jul 2020 08:25:38 +0000 (17:25 +0900)]
Flags cleanup

Remove USE_SUSPEND_MODE (unused)
Merge USE_RECORDED_CONTENT, SET_VIP_PROCESS into USE_TVPD_MODE

Change-Id: Idb4141a49248d55408b58055fe3cb96d230df601
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove senior mode 27/237527/4
Minje Ahn [Wed, 1 Jul 2020 05:55:29 +0000 (14:55 +0900)]
Remove senior mode

Change-Id: I8859f7655bc9e0135e09cfa41275f44ec8c6123c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoMerge "Use FMS(Feature Management System) key instead of system key" into tizen accepted/tizen/unified/20200702.141803 submit/tizen/20200701.023736
hj kim [Wed, 1 Jul 2020 02:40:41 +0000 (02:40 +0000)]
Merge "Use FMS(Feature Management System) key instead of system key" into tizen

3 years agoUse FMS(Feature Management System) key instead of system key 01/237301/3
chengyj1985 [Mon, 29 Jun 2020 03:56:30 +0000 (11:56 +0800)]
Use FMS(Feature Management System) key instead of system key

Change-Id: If50ea2d693f18d799efd6c5c6400d91e8a6f441c

3 years agoRemove plugin API for folder batch insertion 95/237295/6 accepted/tizen/unified/20200630.131149 submit/tizen/20200630.065716
Minje Ahn [Mon, 29 Jun 2020 01:21:47 +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: Ia91b44d8707b32d4c347c1b152b5225da6dbad17
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoRemove unnecessary libsmack dependency 27/236827/2 accepted/tizen/unified/20200624.130225 submit/tizen/20200623.070108
hj kim [Mon, 22 Jun 2020 08:59:42 +0000 (17:59 +0900)]
Remove unnecessary libsmack dependency

Change-Id: Ia3f7473f924af39e2f97af545fc468c161d8ba59

3 years agofree current_path when stop scan 28/234828/1 accepted/tizen/unified/20200601.051806 accepted/tizen/unified/20200604.164551 submit/tizen/20200601.002459 submit/tizen/20200603.011259
chengyj1985 [Fri, 29 May 2020 05:44:17 +0000 (13:44 +0800)]
free current_path when stop scan

Change-Id: I8ebda21373640e75fae379256f460d29bf54c2b8

3 years agofix coredump issue when free ptr 91/233391/4 accepted/tizen/unified/20200529.124056 submit/tizen/20200515.014457 submit/tizen/20200529.021237
chengyj1985 [Thu, 14 May 2020 08:54:28 +0000 (16:54 +0800)]
fix coredump issue when free ptr

Change-Id: Iacbdfea010bdabc8eeee5c4ab5f784add92c272c

4 years agoRemove GThreadFunc type cast 28/231528/2 accepted/tizen/unified/20200423.161054 submit/tizen/20200423.080104
Minje Ahn [Wed, 22 Apr 2020 07:53:56 +0000 (16:53 +0900)]
Remove GThreadFunc type cast

Change-Id: Ie36088ef923dac63639934eec008e684e7ddc06c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix bug that media-scanner does not shut down 98/231398/3 accepted/tizen/unified/20200422.215428 submit/tizen/20200422.001719
Minje Ahn [Tue, 21 Apr 2020 23:46:09 +0000 (08:46 +0900)]
Fix bug that media-scanner does not shut down

There is no response to the cancelled request.
So do not increase req count.

Change-Id: I6a265f6715d6c6a195339f4584a95e6a9a351d20
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoServer side scanner clean up 20/231320/4
Minje Ahn [Tue, 21 Apr 2020 07:20:44 +0000 (16:20 +0900)]
Server side scanner clean up

Change-Id: Ieb365d409de8c2fab3b9e8300e9b229a7fc537b6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix TV build error 90/231290/5
Minje Ahn [Tue, 21 Apr 2020 04:36:02 +0000 (13:36 +0900)]
Fix TV build error

Change-Id: I6d7364ab2dbfd769d846b842cf16313e41efef08
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoScanner-v2 cleanup 61/231261/2
Minje Ahn [Mon, 20 Apr 2020 22:56:09 +0000 (07:56 +0900)]
Scanner-v2 cleanup

Change-Id: I48802cc60beb69bd1d8033e70905421857fa10a1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoClean up thread-related code in media-server 08/231208/6
Minje Ahn [Mon, 20 Apr 2020 06:17:41 +0000 (15:17 +0900)]
Clean up thread-related code in media-server

Change-Id: I06a092205022f86b78dfd40de99c9d4b2dba5ace
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoScanner mainloop cleanup 81/231181/5
Minje Ahn [Mon, 20 Apr 2020 00:49:18 +0000 (09:49 +0900)]
Scanner mainloop cleanup

Change-Id: I51d2a504a0685bb8247168835dda5999e6a81048
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove out of memory related code by using glib APIs 47/230647/12
hj kim [Mon, 13 Apr 2020 07:00:56 +0000 (16:00 +0900)]
Remove out of memory related code by using glib APIs

glib's memory managed as below.
If any call to allocate memory fails, the application is terminated. This also means that there is no need to check if the call succeeded.

Change-Id: I0a47c563dda34a37d3936f94ef7f90fbfa679303

4 years agoFix memory leak 46/231046/1
hj kim [Fri, 17 Apr 2020 03:38:20 +0000 (12:38 +0900)]
Fix memory leak

Change-Id: Id14976cdc15b05708743112fb48331657b303ec8

4 years agoCode cleanup 23/230623/12
Minje Ahn [Mon, 13 Apr 2020 04:56:42 +0000 (13:56 +0900)]
Code cleanup

Change-Id: Id0857696f352ba13fab920d9027994083054f5d5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoExternal storage related code cleanup 18/230418/11 accepted/tizen/unified/20200411.115618 submit/tizen/20200410.073041
Minje Ahn [Fri, 10 Apr 2020 01:43:17 +0000 (10:43 +0900)]
External storage related code cleanup

Change-Id: Ia94d294c7257f118c831352fad4b40c30c78cc67
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoMerge "Remove -Wno-deprecated -Wno-deprecated-declarations options" into tizen accepted/tizen/unified/20200409.083636 submit/tizen/20200408.034646
hj kim [Wed, 8 Apr 2020 06:57:14 +0000 (06:57 +0000)]
Merge "Remove -Wno-deprecated -Wno-deprecated-declarations options" into tizen

4 years agoRemove -Wno-deprecated -Wno-deprecated-declarations options 24/230124/1
hj kim [Wed, 8 Apr 2020 05:57:54 +0000 (14:57 +0900)]
Remove -Wno-deprecated -Wno-deprecated-declarations options

Change-Id: I0d3777a7bd7bab0bd2a1084572de3bffe992f2ab

4 years agoExclude scanner-v2 from public build 09/230109/2
Minje Ahn [Wed, 8 Apr 2020 04:12:14 +0000 (13:12 +0900)]
Exclude scanner-v2 from public build

Changed to build the scanner-v2 only for TV profile (Exclude scanner-v1 when TV profile build)

Change-Id: I0d5fa8c32ec53c3d704ce5ca23157b59fabc11aa
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange function name 15/229415/3 accepted/tizen/unified/20200402.155617 accepted/tizen/unified/20200403.153134 submit/tizen/20200401.074846 submit/tizen/20200403.035052
Minje Ahn [Wed, 1 Apr 2020 03:18:11 +0000 (12:18 +0900)]
Change function name

Change-Id: Ia0b013ba11ae6c5ba179fd9ed6d580b20130d8ce
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove notification-related functions 65/229265/2
Minje Ahn [Tue, 31 Mar 2020 00:54:03 +0000 (09:54 +0900)]
Improve notification-related functions

Change-Id: I8b4d856bc63fbacd091f0f9882d5d069d4278aba
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix memory leak 42/228542/1 accepted/tizen/unified/20200324.101527 submit/tizen/20200324.023124
INSUN PYO [Mon, 23 Mar 2020 23:28:01 +0000 (08:28 +0900)]
Fix memory leak

Change-Id: I9038098ad2e77f47491578e3fda8aed914423dc5

4 years agoModify code to use g_strdup() 23/227623/3 accepted/tizen/unified/20200315.214851 submit/tizen/20200313.040349
hj kim [Fri, 13 Mar 2020 07:17:02 +0000 (16:17 +0900)]
Modify code to use g_strdup()

Change-Id: I0d2569df7e7059a9af2994e562b3ecfba04c64d8

4 years agoRemove unused variable and add define to fix build warning 88/227588/1
jiyong.min [Fri, 13 Mar 2020 03:58:12 +0000 (12:58 +0900)]
Remove unused variable and add define to fix build warning

Change-Id: I9ea49a41497db938d0fc38adb1bfce2db9959bf5

4 years agoFix build warning and Modify Makefile to make warning error 57/227457/6 submit/tizen/20200313.001656
hj kim [Thu, 12 Mar 2020 05:34:46 +0000 (14:34 +0900)]
Fix build warning and Modify Makefile to make warning error

Change-Id: I47089d3e772155ed3cde0a9871635424ed9d6de1

4 years agoReplace 'g_main_is_running' to 'g_main_loop_is_running' for glib update 15/224515/1 accepted/tizen/unified/20200224.081417 submit/tizen/20200203.160801 submit/tizen/20200217.011016
hj kim [Tue, 11 Feb 2020 07:11:04 +0000 (16:11 +0900)]
Replace 'g_main_is_running' to 'g_main_loop_is_running' for glib update

Change-Id: I69916c61cf4f2393d556afcf14ab3592d9eca03e