Mercurial > mplayer.hg
diff gui/interface.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 | a73127c786e8 |
children | 08f21a09a545 |
line wrap: on
line diff
--- a/gui/interface.c Fri Nov 29 12:34:21 2013 +0000 +++ b/gui/interface.c Fri Nov 29 12:41:32 2013 +0000 @@ -23,6 +23,7 @@ #include "interface.h" #include "app/app.h" +#include "app/cfg.h" #include "app/gui.h" #include "dialog/dialog.h" #include "skin/skin.h" @@ -437,6 +438,15 @@ dvd_angle = guiInfo.Angle; #endif break; + + case STREAMTYPE_TV: + case STREAMTYPE_DVB: + { + char tmp[512]; + + sprintf(tmp, "%s://", guiTV[gui_tv_digital].SchemeName); + uiSetFile(NULL, tmp, SAME_STREAMTYPE); + } } /* video opts */ @@ -632,6 +642,11 @@ memcpy(guiInfo.Subtitle, dvd->subtitles, sizeof(dvd->subtitles)); #endif break; + + case STREAMTYPE_TV: + case STREAMTYPE_DVB: + guiInfo.Tracks = 1; + break; } break; @@ -652,7 +667,7 @@ if (guiInfo.sh_video) guiInfo.CodecName = strdup(guiInfo.sh_video->codec->name); - state = (guiInfo.StreamType == STREAMTYPE_STREAM ? btnDisabled : btnReleased); + state = (isSeekableStreamtype ? btnReleased : btnDisabled); btnSet(evForward10sec, state); btnSet(evBackward10sec, state); btnSet(evForward1min, state);