summaryrefslogtreecommitdiff
path: root/src/util/media-thumb-db.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/media-thumb-db.c')
-rwxr-xr-xsrc/util/media-thumb-db.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util/media-thumb-db.c b/src/util/media-thumb-db.c
index 3332a18..e8a999d 100755
--- a/src/util/media-thumb-db.c
+++ b/src/util/media-thumb-db.c
@@ -92,8 +92,7 @@ int _media_thumb_get_thumb_path_wh_from_db(sqlite3 *handle,
return MS_MEDIA_ERR_NONE;
}
-int _media_thumb_update_thumb_path_wh_to_db(sqlite3 *handle,
- const char *origin_path,
+int _media_thumb_update_thumb_path_wh_to_db(const char *origin_path,
char *thumb_path,
int width,
int height,
@@ -102,10 +101,6 @@ int _media_thumb_update_thumb_path_wh_to_db(sqlite3 *handle,
int err = MS_MEDIA_ERR_NONE;
char *query_string = NULL;
- if (handle == NULL) {
- thumb_err("DB handle is NULL");
- return MS_MEDIA_ERR_INVALID_PARAMETER;
- }
if (!STRING_VALID(origin_path)) {
thumb_err("Invalid origin_path");
return MS_MEDIA_ERR_INVALID_PARAMETER;
@@ -203,7 +198,7 @@ int _media_thumb_update_db(const char *origin_path,
{
int err = MS_MEDIA_ERR_NONE;
- err = _media_thumb_update_thumb_path_wh_to_db(db_handle, origin_path, thumb_path, width, height, uid);
+ err = _media_thumb_update_thumb_path_wh_to_db(origin_path, thumb_path, width, height, uid);
if (err != MS_MEDIA_ERR_NONE) {
thumb_err("_media_thumb_update_wh_to_db (%s) failed: %d", origin_path, err);
return err;