Removed deprecated API 44/312644/2 tizen
authorFahmi Kazi Md <fahmi.k@partner.samsung.com>
Wed, 12 Jun 2024 11:54:59 +0000 (07:54 -0400)
committerFahmi Kazi Md <fahmi.k@partner.samsung.com>
Wed, 12 Jun 2024 12:22:24 +0000 (08:22 -0400)
[Project] Video_Player
[BinType] AP
[Customer] ALL

[Issue#] N/A
[Request] Dev
[Occurrence Version] 1.0.40

[Problem] Build errors due to deprecated APIs
[Cause & Measure] Updated the APIs
[Checking Method] Self-test

[Team] Galaxy Buds
[Developer] Fahmi Kazi Md. [fahmi.k>]
[Solution company] SRBD
[Change Type] Deprecated API Change

Change-Id: Ieacf114ec5d37caaf283173b06a1362c2f04d859
Signed-off-by: Fahmi Kazi Md <fahmi.k@partner.samsung.com>
src/common/mp-util-media-service.c

index c513cc26036c428cb5549c53370940eacb9b0e6f..84324bbeb413fabd14d64d39e4fb981abcf77593 100755 (executable)
@@ -1868,13 +1868,6 @@ void mp_util_svc_register_thumbnail_update_func(int nVideoItemIndex,
        if(ret != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("Failed to generate thumbnail");
        }
-       media_thumbnail_completed_cb completed_cb = (media_thumbnail_completed_cb)pUserCallbackFunc;
-       if(completed_cb) {
-               char *path = NULL;
-               media_info_get_thumbnail_path(pVideoItem, &path);
-               completed_cb(ret, path, pUserData);
-               MP_FREE_STRING(path);
-       }
 }
 
 /**
@@ -1895,13 +1888,7 @@ void mp_util_svc_cancel_thumbnail_update(int nVideoItemIndex)
        media_info_h pVideoItem =
                (media_info_h) eina_list_nth(VideoItemList, nVideoItemIndex);
 
-       if (pVideoItem) {
-               if (media_info_cancel_thumbnail(pVideoItem) !=
-                       MEDIA_CONTENT_ERROR_NONE) {
-                       VideoLogWarning("media_info_cancel_thumbnail is Fail");
-                       return;
-               }
-       } else {
+       if (!pVideoItem) {
                VideoLogError("[ERR] pVideoItem is not existed.");
        }
 }