The mediacontroller resets all tables except the latest server.
If not exists, it will be created.
Therefore, there is no problem when the size is 0.
It is unnecessary behavior.
Change-Id: Icd91f352715cbed9c8499fce4cb5373762162845
(cherry picked from commit
8b01b12c6781ca02148e920137e61b3cf0e8ff5f)
Name: capi-media-controller
Summary: A media controller library in Tizen Native API
-Version: 0.2.34
+Version: 0.2.35
Release: 1
Group: Multimedia/API
License: Apache-2.0
/* Check the size of database */
if (stat(db_path, &buf) == 0) {
if (buf.st_size == 0) {
- mc_warning("The size of database is error");
+ mc_warning("The size of database is 0, it's ok");
g_free(db_path);
- return MEDIA_CONTROLLER_ERROR_INVALID_OPERATION;
+ return MEDIA_CONTROLLER_ERROR_NONE;
}
} else {
mc_stderror("stat failed");