summaryrefslogtreecommitdiff
path: root/xine_frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'xine_frontend.c')
-rw-r--r--xine_frontend.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/xine_frontend.c b/xine_frontend.c
index d55de99c..75fd9941 100644
--- a/xine_frontend.c
+++ b/xine_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend.c,v 1.38 2007-05-18 15:49:02 phintuka Exp $
+ * $Id: xine_frontend.c,v 1.39 2007-06-12 20:55:11 phintuka Exp $
*
*/
@@ -689,6 +689,17 @@ static int fe_xine_open(frontend_t *this_gen, const char *mrl)
#endif
x_upd_num("engine.buffers.video_num_buffers", this->pes_buffers);
+#if !defined(IS_FBFE) && defined(FE_STANDALONE)
+ if(!strncmp(mrl, "xvdr:", 5) && strstr(mrl, "//")) {
+ char *name = NULL, *end;
+ asprintf(&name, "VDR - %s", strstr(mrl, "//")+2);
+ if(NULL != (end = strstr(name, ":37890"))) *end = 0; /* hide only default port */
+ XStoreName(this->display, this->window[0], name);
+ XStoreName(this->display, this->window[1], name);
+ free(name);
+ }
+#endif
+
return result;
}