summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2018-11-07 02:10:46 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2018-11-07 02:10:46 (GMT)
commit615ce7cc8180124fef07d26dcc46b72b83c13d08 (patch)
tree0d125e43e8ee950d229108868ad93c94642d9972
parent9323d2d449cb89ce46a2d5c263314f0192b046dc (diff)
downloadlibmedia-thumbnail-615ce7cc8180124fef07d26dcc46b72b83c13d08.zip
libmedia-thumbnail-615ce7cc8180124fef07d26dcc46b72b83c13d08.tar.gz
libmedia-thumbnail-615ce7cc8180124fef07d26dcc46b72b83c13d08.tar.bz2
Change-Id: Icc45ae99d610d518a5fb09d061599ae0cd729c81 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-xinclude/media-thumbnail.h1
-rwxr-xr-xsrc/include/ipc/media-thumb-ipc.h2
-rwxr-xr-xsrc/ipc/media-thumb-ipc.c28
-rwxr-xr-xsrc/media-thumbnail.c5
4 files changed, 0 insertions, 36 deletions
diff --git a/include/media-thumbnail.h b/include/media-thumbnail.h
index 7a203aa..3e459f8 100755
--- a/include/media-thumbnail.h
+++ b/include/media-thumbnail.h
@@ -41,7 +41,6 @@ int thumbnail_request_extract_raw_data_async(int request_id, const char *origin_
int thumbnail_request_cancel_media(unsigned int request_id);
int thumbnail_request_cancel_raw_data(int request_id);
-int thumbnail_request_cancel_all();
#ifdef __cplusplus
}
diff --git a/src/include/ipc/media-thumb-ipc.h b/src/include/ipc/media-thumb-ipc.h
index 9f0d6f7..7d0357d 100755
--- a/src/include/ipc/media-thumb-ipc.h
+++ b/src/include/ipc/media-thumb-ipc.h
@@ -51,6 +51,4 @@ int _media_thumb_request_raw_data_async(int msg_type,
thumbRawUserData *userData,
uid_t uid);
-int _media_thumb_request_cancel_all();
-
#endif /*_MEDIA_THUMB_IPC_H_*/
diff --git a/src/ipc/media-thumb-ipc.c b/src/ipc/media-thumb-ipc.c
index 5015be2..c715182 100755
--- a/src/ipc/media-thumb-ipc.c
+++ b/src/ipc/media-thumb-ipc.c
@@ -684,31 +684,3 @@ int _media_thumb_request_raw_data_async(int msg_type, int request_id, const char
return err;
}
-
-int _media_thumb_request_cancel_all()
-{
- if (g_manage_raw_queue != NULL) {
- while (g_queue_get_length(g_manage_raw_queue) > 0) {
- thumbRawReq *req = (thumbRawReq *)g_queue_peek_tail(g_manage_raw_queue);
- if (req != NULL) {
- if (req->isRequested == true) {
- req->isCanceled = true;
- thumb_dbg("Last item!!");
-
- break;
- } else {
- g_queue_pop_tail(g_manage_raw_queue);
-
- SAFE_FREE(req->path);
- SAFE_FREE(req->userData);
- SAFE_FREE(req);
- }
- } else {
- thumb_dbg("Queue is empty!!");
- break;
- }
- }
- }
-
- return MS_MEDIA_ERR_NONE;
-}
diff --git a/src/media-thumbnail.c b/src/media-thumbnail.c
index 690a4d1..9a3b02a 100755
--- a/src/media-thumbnail.c
+++ b/src/media-thumbnail.c
@@ -141,8 +141,3 @@ int thumbnail_request_cancel_raw_data(int request_id)
return MS_MEDIA_ERR_NONE;
}
-
-int thumbnail_request_cancel_all()
-{
- return _media_thumb_request_cancel_all();
-}