From 250bae549e5b39e411a30012388aa1f16f9d1056 Mon Sep 17 00:00:00 2001 From: prachi kumar Date: Tue, 20 Aug 2019 19:26:14 +0530 Subject: [PATCH] Resolved Delete issue by MP_TRACK_BY_ADDED_TIME Change-Id: I807748cebc260fbea36fad5a5d445d51f679a1f0 --- src/common/mp-edit-callback.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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); -- 2.7.4