[Mplayer-cvslog] CVS: main cfg-common.h,1.73,1.74 mplayer.c,1.636,1.637
Jindrich Makovicka CVS
henry at mplayerhq.hu
Sat Dec 28 23:58:10 CET 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv23809
Modified Files:
cfg-common.h mplayer.c
Log Message:
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
Index: cfg-common.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-common.h,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- cfg-common.h 28 Dec 2002 15:03:20 -0000 1.73
+++ cfg-common.h 28 Dec 2002 22:57:24 -0000 1.74
@@ -254,6 +254,7 @@
{"input", &tv_param_input, CONF_TYPE_INT, 0, 0, 20, NULL},
{"outfmt", &tv_param_outfmt, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"fps", &tv_param_fps, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
+ {"channels", &tv_param_channels, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
#ifdef HAVE_TV_V4L
{"amode", &tv_param_amode, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
{"volume", &tv_param_volume, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.636
retrieving revision 1.637
diff -u -r1.636 -r1.637
--- mplayer.c 28 Dec 2002 15:33:14 -0000 1.636
+++ mplayer.c 28 Dec 2002 22:57:25 -0000 1.637
@@ -613,6 +613,7 @@
int osd_show_sub_alignment = 0;
int osd_show_vobsub_changed = 0;
int osd_show_percentage = 0;
+int osd_show_tv_channel = 25;
int rtc_fd=-1;
@@ -2467,15 +2468,46 @@
case MP_CMD_TV_STEP_CHANNEL : {
if (tv_param_on == 1) {
int v = cmd->args[0].v.i;
- if(v > 0)
+ if(v > 0){
tv_step_channel((tvi_handle_t*)(demuxer->priv), TV_CHANNEL_HIGHER);
- else
+#ifdef USE_OSD
+ if (tv_channel_list) {
+ osd_show_tv_channel = sh_video->fps;
+ vo_osd_changed(OSDTYPE_SUBTITLE);
+ }
+#endif
+ } else {
tv_step_channel((tvi_handle_t*)(demuxer->priv), TV_CHANNEL_LOWER);
+#ifdef USE_OSD
+ if (tv_channel_list) {
+ osd_show_tv_channel = sh_video->fps;
+ vo_osd_changed(OSDTYPE_SUBTITLE);
+ }
+#endif
+ }
}
} break;
case MP_CMD_TV_SET_CHANNEL : {
- if (tv_param_on == 1)
+ if (tv_param_on == 1) {
tv_set_channel((tvi_handle_t*)(demuxer->priv), cmd->args[0].v.s);
+#ifdef USE_OSD
+ if (tv_channel_list) {
+ osd_show_tv_channel = sh_video->fps;
+ vo_osd_changed(OSDTYPE_SUBTITLE);
+ }
+#endif
+ }
+ } break;
+ case MP_CMD_TV_LAST_CHANNEL : {
+ if (tv_param_on == 1) {
+ tv_last_channel((tvi_handle_t*)(demuxer->priv));
+#ifdef USE_OSD
+ if (tv_channel_list) {
+ osd_show_tv_channel = sh_video->fps;
+ vo_osd_changed(OSDTYPE_SUBTITLE);
+ }
+#endif
+ }
} break;
case MP_CMD_TV_STEP_NORM : {
if (tv_param_on == 1)
@@ -2950,6 +2982,12 @@
if (osd_show_dvd_nav_delay) {
sprintf(osd_text_tmp, "DVDNAV: %s", dvd_nav_text);
osd_show_dvd_nav_delay--;
+ } else
+#endif
+#ifdef USE_TV
+ if (osd_show_tv_channel && tv_channel_list) {
+ sprintf(osd_text_tmp, "Channel: %s", tv_channel_current->name);
+ osd_show_tv_channel--;
} else
#endif
if (osd_show_sub_visibility) {
More information about the MPlayer-cvslog
mailing list