summaryrefslogtreecommitdiff
path: root/apps/plugins/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/search.c')
-rw-r--r--apps/plugins/search.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/search.c b/apps/plugins/search.c
index d1c7f041da..4c6d569806 100644
--- a/apps/plugins/search.c
+++ b/apps/plugins/search.c
@@ -24,8 +24,6 @@
24 24
25PLUGIN_HEADER 25PLUGIN_HEADER
26 26
27static const struct plugin_api* rb;
28
29#define BUFFER_SIZE 16384 27#define BUFFER_SIZE 16384
30 28
31static int fd; 29static int fd;
@@ -146,14 +144,12 @@ static bool search_init(const char* file){
146} 144}
147 145
148/* this is the plugin entry point */ 146/* this is the plugin entry point */
149enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 147enum plugin_status plugin_start(const void* parameter)
150{ 148{
151 int ok; 149 int ok;
152 const char *filename = parameter; 150 const char *filename = parameter;
153 char *p; 151 char *p;
154 152
155 rb = api;
156
157 DEBUGF("%s - %s\n", (char *)parameter, &filename[rb->strlen(filename)-4]); 153 DEBUGF("%s - %s\n", (char *)parameter, &filename[rb->strlen(filename)-4]);
158 /* Check the extension. We only allow .m3u files. */ 154 /* Check the extension. We only allow .m3u files. */
159 if(rb->strcasecmp(&filename[rb->strlen(filename)-4], ".m3u") && 155 if(rb->strcasecmp(&filename[rb->strlen(filename)-4], ".m3u") &&