Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: No teletext via 2nd dvb card?



>
> I guess so far nobody had any need for this.
> If you can successfully implement a pmVideoOnly mode, let me know.

I posted such a suggestion to the list about a year ago. Then I developed
osdteletext and have no longer been interested.
But here is the patch. It worked for me with the VDR/driver at the time.

*** 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)

Marcel

>
> Klaus



-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index