From 0e1de8e0bbce728748e7ed9de1f3e4346a3b1dce Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 23 Apr 2015 23:38:36 +0200 Subject: [PATCH] Add media_kind music videos and add forgotten return in db upgrade --- src/db.c | 2 ++ src/db.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/db.c b/src/db.c index 133a90ba..04ee2433 100644 --- a/src/db.c +++ b/src/db.c @@ -5963,6 +5963,8 @@ db_upgrade(int db_ver) case 1500: ret = db_generic_upgrade(db_upgrade_v1501_queries, sizeof(db_upgrade_v1501_queries) / sizeof(db_upgrade_v1501_queries[0])); + if (ret < 0) + return -1; /* FALLTHROUGH */ diff --git a/src/db.h b/src/db.h index e852e6fa..4b5e2d4f 100644 --- a/src/db.h +++ b/src/db.h @@ -90,6 +90,7 @@ enum media_kind { MEDIA_KIND_MOVIE = 2, MEDIA_KIND_PODCAST = 4, MEDIA_KIND_AUDIOBOOK = 8, + MEDIA_KIND_MUSICVIDEO = 32, MEDIA_KIND_TVSHOW = 64, };