aboutsummaryrefslogtreecommitdiffstats
path: root/binding/media-manager.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-10-09 13:40:30 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-10-09 18:29:54 -0700
commitcc0456ed42fe31edc081606d1c1c39d0703a6c05 (patch)
treeb69c52af899b35ba75fb2d096e68028c70142994 /binding/media-manager.h
parent1fe7b9363da7f5cac0641b7ecea249fdcca23970 (diff)
binding: mediascanner: report only playlist for media inserted
Only generate an media_added event with the playlist of the media inserted. Bug-AGL: SPEC-934 Change-Id: I4e0897fbf06651f0d85c7dd5145edc7c898c68bf Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/media-manager.h')
-rw-r--r--binding/media-manager.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/binding/media-manager.h b/binding/media-manager.h
index f1f177e..69c866b 100644
--- a/binding/media-manager.h
+++ b/binding/media-manager.h
@@ -83,11 +83,14 @@ void DebugTraceSendMsg(int level, gchar* message);
"ON audio_albums.id = audios.album_id " \
"LEFT JOIN audio_genres " \
"ON audio_genres.id = audios.genre_id " \
- "WHERE audios.id = files.id ORDER BY " \
+ "WHERE audios.id = files.id " \
+ "AND files.path LIKE '%s/%%' " \
+ "ORDER BY " \
"audios.artist_id, audios.album_id, audios.trackno"
typedef struct {
GList *list;
+ gchar *uri_filter;
GMutex m;
Scanner1 *lms_proxy;
} stMediaPlayerManage;
@@ -105,7 +108,7 @@ int MediaPlayerManagerInit(void);
void ListLock();
void ListUnlock();
-GList* media_lightmediascanner_scan(void);
+GList* media_lightmediascanner_scan(gchar *uri);
GList* media_local_scan(GList *list);
struct Media_Item {