From: prachi kumar Date: Tue, 20 Aug 2019 13:56:14 +0000 (+0530) Subject: Resolved Delete issue by MP_TRACK_BY_ADDED_TIME X-Git-Tag: submit/tizen/20190820.070520^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=250bae549e5b39e411a30012388aa1f16f9d1056;p=profile%2Fmobile%2Fapps%2Fnative%2Fmusic-player.git Resolved Delete issue by MP_TRACK_BY_ADDED_TIME Change-Id: I807748cebc260fbea36fad5a5d445d51f679a1f0 --- diff --git a/src/common/mp-edit-callback.c b/src/common/mp-edit-callback.c index a868eff..074ec8b 100644 --- a/src/common/mp-edit-callback.c +++ b/src/common/mp-edit-callback.c @@ -580,13 +580,12 @@ inline static int _delete_track(mp_media_info_h item_handle) break; } - case MP_TRACK_BY_ADDED_TIME:{ - DEBUG_TRACE("API depricated so cannot delete by default added time 0"); - return -1; - /*ret = mp_media_info_set_added_time(item_handle, 0); - MP_CHECK_VAL(ret == 0, -1);*/ + /* case MP_TRACK_BY_ADDED_TIME:{ + // API depricated so cannot delete by default added time 0 + ret = mp_media_info_set_added_time(item_handle, 0); + MP_CHECK_VAL(ret == 0, -1); break; - } + } */ case MP_TRACK_BY_FAVORITE:{ ret = mp_media_info_set_favorite(item_handle, 0); MP_CHECK_VAL(ret == 0, -1);