summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-02-07 01:14:49 +0000
committerphintuka <phintuka>2010-02-07 01:14:49 +0000
commit96b85a7fe6cc9ad9737b3c6d3ad731a54fb8b636 (patch)
treea2a9712e546c7369894a69ef706df359051e0cae
parent379a31a202580c461e4a6005a484a31fea6dbec2 (diff)
downloadxineliboutput-96b85a7fe6cc9ad9737b3c6d3ad731a54fb8b636.tar.gz
xineliboutput-96b85a7fe6cc9ad9737b3c6d3ad731a54fb8b636.tar.bz2
1.40
-rw-r--r--xineliboutput.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/xineliboutput.c b/xineliboutput.c
index 3917fdd8..de601568 100644
--- a/xineliboutput.c
+++ b/xineliboutput.c
@@ -21,7 +21,7 @@
*
* xineliboutput.c: VDR Plugin interface
*
- * $Id: xineliboutput.c,v 1.30.2.8 2010-02-07 01:05:04 phintuka Exp $
+ * $Id: xineliboutput.c,v 1.30.2.9 2010-02-07 01:14:49 phintuka Exp $
*
*/
@@ -308,6 +308,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;
}