blob: 42c78ca20a1044bbd576036f0a1d6cbdc94140d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- menu-image.c
+++ menu-image.c.patch
@@ -17,6 +17,7 @@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <unistd.h>
+#include <libgen.h>
#include <typeinfo>
#include "image.h"
@@ -25,7 +26,7 @@
#include "menu-image.h"
#include "control-image.h"
#include <vdr/i18n.h>
-
+#include <vdr/plugin.h>
#include <vdr/status.h>
@@ -79,6 +80,8 @@
char *full = source->BuildName(name);
cDirItem *item = cMenuBrowse::GetSelected();
if(item) {
+ // check, whether we can use a different plugin for replay
+ if(!cPluginManager::CallFirstService("ReplayDirectoryImages", dirname(full))) {
//FIXME use a nonblocking way
//OSD_InfoMsg(tr("Building slide show..."));
@@ -96,6 +99,7 @@
}
lastselect = NULL;
}
+ }
free(full);
free(name);
}
|