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,
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;
{
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;