summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-28 22:57:39 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-28 22:57:39 +0000
commit29ab7de580596c48d71a990c84cab1917de5e272 (patch)
tree377b200fa73d3ae959fa710af7496f009d5c7967 /mplayer.c
parentd949c62999dccb1235f7f4f684cd1144cce7a466 (diff)
downloadmpv-29ab7de580596c48d71a990c84cab1917de5e272.tar.bz2
mpv-29ab7de580596c48d71a990c84cab1917de5e272.tar.xz
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8628 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c44
1 files changed, 41 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index 9a6f47e9ce..6d2fd2084c 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -613,6 +613,7 @@ int osd_show_sub_visibility = 0;
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 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
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)
@@ -2952,6 +2984,12 @@ if(rel_seek_secs || abs_seek_pos){
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) {
sprintf(osd_text_tmp, "Subtitles: %sabled", sub_visibility?"en":"dis");
osd_show_sub_visibility--;