summaryrefslogtreecommitdiffstats
path: root/binding/media-manager.h
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2017-12-22 11:43:45 +0900
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-01-19 02:22:40 +0000
commitc726ed8c7e60946812ebe831ddbf6c549b8fa397 (patch)
treee37a8436daf328f94fd979520f607aa24ce666a8 /binding/media-manager.h
parent4a2b9a16d6fc2459fa0ab3daa8cf7064e4616a81 (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> (cherry picked from commit 68314a658d919a06b270340f06c162f56147c7b1)
Diffstat (limited to 'binding/media-manager.h')
-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 7f204fe..200b43d 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"