Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] suggestion/patch: pmVideoOnly (sound for teletext)
Hello,
I really wanted to have sound when watching teletext.
The plugin provides a setup option but doesn't seem to implement it at all.
The idea is to provide a PlayMode pmVideoOnly (video from player, sound from decoder).
The following patch implements this.
It might contain unnecessary calls, but it *works for me*:
*** device.h_orig Tue Feb 4 19:33:28 2003
--- device.h Wed Feb 5 21:47:10 2003
***************
*** 31,34 ****
--- 31,35 ----
pmAudioOnly, // audio only from player, video from decoder
pmAudioOnlyBlack, // audio only from player, no video (black screen)
+ pmVideoOnly, //video only from player, audio from decoder
pmExtern_THIS_SHOULD_BE_AVOIDED
// external player (e.g. MPlayer), release the device
*** dvbdevice.c_orig Sun Jan 26 22:03:26 2003
--- dvbdevice.c Tue Feb 4 22:58:04 2003
***************
*** 751,754 ****
--- 751,769 ----
CHECK(ioctl(fd_video, VIDEO_SET_BLANK, false));
break;
+ //SNIP
+ case pmVideoOnly:
+ if (siProcessor)
+ siProcessor->SetStatus(false);
+ CHECK(ioctl(fd_video, VIDEO_SET_BLANK, true));
+ CHECK(ioctl(fd_video, VIDEO_STOP, true));
+ CHECK(ioctl(fd_audio, AUDIO_SELECT_SOURCE, AUDIO_SOURCE_DEMUX));
+ CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, false));
+ CHECK(ioctl(fd_audio, AUDIO_PLAY));
+ CHECK(ioctl(fd_video, VIDEO_CLEAR_BUFFER));
+ CHECK(ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_MEMORY));
+ CHECK(ioctl(fd_video, VIDEO_PLAY));
+ //CHECK(ioctl(fd_video, VIDEO_SET_BLANK, false));
+ break;
+ //SNIP
case pmExtern_THIS_SHOULD_BE_AVOIDED:
if (siProcessor)
(The patch is available from
http://www.wiesweg-online.de/linux/vdr/pmvideoonly.patch)
A one-line patch for the teletext plugin:
*** PLUGINS/src/teletext/txtviewer.c_orig Wed Feb 5 21:52:05 2003
--- PLUGINS/src/teletext/txtviewer.c Wed Feb 5 21:55:05 2003
***************
*** 9,13 ****
#define OSDWAIT 100000
! cTxtViewer::cTxtViewer(void) : cPlayer()
{
if (StretchPic==true) {
--- 9,13 ----
#define OSDWAIT 100000
! cTxtViewer::cTxtViewer(void) : cPlayer(HaveSound ? pmVideoOnly : pmAudioVi
{
if (StretchPic==true) {
(also available from
http://www.wiesweg-online.de/linux/vdr/teletext_pmvideoonly.patch)
Marcel
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index