* Add image rotation support during resize. (mostly useful for TiVo)

This commit is contained in:
Justin Maggard
2012-01-22 00:33:55 +00:00
parent 6820d05143
commit c5bb5c84b3
10 changed files with 168 additions and 113 deletions

8
sql.c
View File

@ -216,13 +216,19 @@ db_upgrade(sqlite3 *db)
return 5;
if (db_vers < 6)
{
DPRINTF(E_WARN, L_DB_SQL, "Updating DB version to v%d.\n", DB_VERSION);
ret = sql_exec(db, "CREATE TABLE BOOKMARKS ("
"ID INTEGER PRIMARY KEY, "
"SEC INTEGER)");
if( ret != SQLITE_OK )
return 6;
}
if (db_vers < 7)
{
DPRINTF(E_WARN, L_DB_SQL, "Updating DB version to v%d.\n", DB_VERSION);
ret = sql_exec(db, "ALTER TABLE DETAILS ADD rotation INTEGER");
if( ret != SQLITE_OK )
return 7;
}
sql_exec(db, "PRAGMA user_version = %d", DB_VERSION);
return 0;