summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-10-08 13:08:37 +0000
committerphintuka <phintuka>2009-10-08 13:08:37 +0000
commit676145bcd9d2b60d2f54cfcb473ddfa01c1f7b5c (patch)
tree91deb5bdd77565106bdc0d05da6586d89c7eb373
parent6f82362e5235da42d722b0b3aabcc875a9927b5b (diff)
downloadxineliboutput-676145bcd9d2b60d2f54cfcb473ddfa01c1f7b5c.tar.gz
xineliboutput-676145bcd9d2b60d2f54cfcb473ddfa01c1f7b5c.tar.bz2
Added StartFrontend-1.0 service (Thanks to durchflieger)
http://vdrportal.de/board/thread.php?threadid=86804&threadview=0&hilight=&hilightuser=0&page=1
-rw-r--r--xineliboutput.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/xineliboutput.c b/xineliboutput.c
index 2de17a88..e935eebf 100644
--- a/xineliboutput.c
+++ b/xineliboutput.c
@@ -21,7 +21,7 @@
*
* xineliboutput.c: VDR Plugin interface
*
- * $Id: xineliboutput.c,v 1.30.2.6 2009-09-16 16:59:59 phintuka Exp $
+ * $Id: xineliboutput.c,v 1.30.2.7 2009-10-08 13:08:37 phintuka Exp $
*
*/
@@ -139,6 +139,7 @@ const char cmdLineHelp[] =
" -p --primary Force xineliboutput to be primary device when\n"
" there are active frontend(s)\n"
" -c --exit-on-close Exit vdr when local frontend window is closed\n"
+" -C --config=file Use xine-lib config file\n"
;
const char *cPluginXinelibOutput::CommandLineHelp(void)
@@ -275,6 +276,22 @@ bool cPluginXinelibOutput::Service(const char *Id, void *Data)
return true;
}
+ else if(!strcmp(Id, "StartFrontend-1.0")) {
+ if(CData && *CData) {
+ LOGMSG("Service(%s, %s)", Id, CData);
+ int local_frontend = strstra(CData, xc.s_frontends, -1);
+ if (local_frontend >= 0 && local_frontend < FRONTEND_count && strcmp(CData, xc.local_frontend)) {
+ strn0cpy(xc.local_frontend, xc.s_frontends[local_frontend], sizeof(xc.local_frontend));
+ cXinelibDevice::Instance().ConfigureWindow(
+ xc.fullscreen, xc.width, xc.height, xc.modeswitch, xc.modeline,
+ xc.display_aspect, xc.scale_video, xc.field_order);
+ }
+ return true;
+ }
+ LOGMSG("Service(%s) -> true", Id);
+ return true;
+ }
+
}
return false;
}