diff gui/app/cfg.c @ 36429:28ea255e40ce

Add support for TV/DVB to the GUI. Support is limited to a single (resp. the first) card. At the same time, add the new GUI option 'gui_tv_digital', the new GUI message 'evPlayTV' and the new GUI font symbol 'b'. Additionally, update the documentation.
author ib
date Fri, 29 Nov 2013 12:41:32 +0000
parents c667e34fb941
children cc8102c4ca83
line wrap: on
line diff
--- a/gui/app/cfg.c	Fri Nov 29 12:34:21 2013 +0000
+++ b/gui/app/cfg.c	Fri Nov 29 12:41:32 2013 +0000
@@ -45,6 +45,11 @@
 #include "sub/font_load.h"
 #include "sub/sub.h"
 
+guiTV_t guiTV[2] = {
+    { STREAMTYPE_TV,  "tv"  },
+    { STREAMTYPE_DVB, "dvb" }
+};
+
 m_config_t *gui_conf;
 
 int gtkCacheOn;
@@ -93,6 +98,8 @@
 int gui_video_pos_x = -3;
 int gui_video_pos_y = -3;
 
+int gui_tv_digital = True;
+
 int guiWinID = -1;
 
 char *skinName;
@@ -174,6 +181,10 @@
 
     { "idle",                        &player_idle_mode,        CONF_TYPE_FLAG,        CONF_GLOBAL, 0,     1,          NULL },
 
+#ifdef CONFIG_TV
+    { "gui_tv_digital",              &gui_tv_digital,          CONF_TYPE_FLAG,        0,           0,     1,          NULL },
+#endif
+
     // NOTE TO MYSELF: Do we really need all/any non-gtkOptions, i.e. override mplayer options?
 
     { "gui_skin",                    &skinName,                CONF_TYPE_STRING,      0,           0,     0,          NULL },