* Add bookmark support for Samsung TVs.

This commit is contained in:
Justin Maggard
2011-08-05 20:36:54 +00:00
parent cdc93f680f
commit d5b77cbd46
7 changed files with 96 additions and 10 deletions

View File

@ -871,7 +871,6 @@ main(int argc, char * * argv)
time_t lastupdatetime = 0;
int max_fd = -1;
int last_changecnt = 0;
short int new_db = 0;
pid_t scanner_pid = 0;
pthread_t inotify_thread = 0;
struct media_dir_s *media_path, *last_path;
@ -911,14 +910,14 @@ main(int argc, char * * argv)
#endif
LIST_INIT(&upnphttphead);
new_db = open_db();
if( !new_db )
if( open_db() == 0 )
{
updateID = sql_get_int_field(db, "SELECT UPDATE_ID from SETTINGS");
}
if( sql_get_int_field(db, "pragma user_version") != DB_VERSION )
i = db_upgrade(db);
if( i != 0 )
{
if( new_db )
if( i < 0 )
{
DPRINTF(E_WARN, L_GENERAL, "Creating new database...\n");
}