Mailing List archive

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

[vdr] Re: ANNOUNCE: bitstreamout-0.42i (Was: AC3 over Soundcard(live and replay))



> > use -D option of vdr to force vdr to use only your dvb-s card 
> > (of course you would have to connect your tv to it) then no 
> > transfer mode should be needed.
> 
> If this is absolute the last option to find the fault I can do this. But
> the cabeling is by at tghe moment very difficult (that is one reason for
> using the Siemens DVB-C as primary card, this card has all ports extern
> available, incl. RGB and S-Video, in and out, one thick cable with many
> lines at an sub-d connector on slot).
> 
> @Werner: Need you the information without transfer-mode ?
> 
> ...Hagen

Let's see if the attached patch may help with transfer mode.
It may change the the status line showed by the LCDproc plugin.
Nevertheless just try it (in combination with vdr-1.1.22-audio.dif).

With this patch the attached receiver cInStream should be detached
by cChannelOutAC3::Replaying() and then the next call of
cReplayOutAC3::Play() via the cAudios::PlayAudio() should activate
the AC3 out to the S/P-DIF of the sound card.

         Werner


-- Attached file included as plaintext by Listar --
-- Desc: vdr-1.1.22-transfer.dif

--- transfer.c
+++ transfer.c	Thu Jan 30 14:21:43 2003
@@ -8,6 +8,7 @@
  */
 
 #include "transfer.h"
+#include "status.h"
 
 //XXX+ also used in recorder.c - find a better place???
 // The size of the array used to buffer video data:
@@ -123,11 +124,8 @@
            case 0xC0 ... 0xC1: // audio
                 if (c == 0xC1)
                    canToggleAudioTrack = true;
-                if (!Except || c != Except) {
-                   int n = l;
-                   for (int j = i; j < Length && n--; j++)
-                       b[j] = 0x00;
-                   }
+                if (!Except || c != Except)
+                   memset(&b[i], 0x00, min(l, Length-i));
                 break;
            case 0xE0 ... 0xEF: // video
                 break;
@@ -176,9 +174,11 @@
 :cControl(transfer = new cTransfer(VPid, APid1, APid2, DPid1, DPid2), true)
 {
   ReceiverDevice->AttachReceiver(transfer);
+  cStatus::MsgReplaying(this, "Transfer-Mode");
 }
 
 cTransferControl::~cTransferControl()
 {
   delete transfer;
+  cStatus::MsgReplaying(this, NULL);
 }



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



Home | Main Index | Thread Index