summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2017-12-22 11:43:45 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-01-03 04:32:49 +0900
commit4eefbe0ab828b71abab511ba2d276d870fcc1f25 (patch)
treea5559e00b9aa9b26189c141c1a495cc07792dc62 /binding
parent33850f0e8b2e87675d29f84850123465ec931036 (diff)
binding: mediascanner: fix media_result for video
media_result didn't work with video because of the SQL for video is not perfect. Change-Id: If0f8b9d104f4b3f293c6457c285035f55132f748 Bug-AGL: SPEC-1169 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'binding')
-rw-r--r--binding/media-manager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/binding/media-manager.h b/binding/media-manager.h
index 37621b0..2190a16 100644
--- a/binding/media-manager.h
+++ b/binding/media-manager.h
@@ -91,7 +91,8 @@ void DebugTraceSendMsg(int level, gchar* message);
#define VIDEO_SQL_QUERY \
"SELECT files.path, videos.title, videos.artist, \"\", \"\", " \
- "videos.length FROM files LEFT JOIN videos " \
+ "videos.length FROM files " \
+ "INNER JOIN videos ON videos.id = files.id " \
"WHERE files.path LIKE '%s/%%' " \
"ORDER BY " \
"videos.title"