Mailing List archive

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

[vdr] FIX: switching APID (was vdr 1.1.13 and patch for recording encrypted channels)



On 24 Oct 2002 Steffen Barszus <st_barszus@gmx.de> wrote:

> I use vdr 1.1.13 and have aplied the patch for recording encrypted channels. 
> Now if I try to change the Apid with the green button, the picture disappear 
> and went black. Only after switching the channel the picture is back. Too I 

The following fixes the audio switch problem for me:

diff -uN vdr-1.1.13-orig/dvbdevice.c vdr-1.1.13/dvbdevice.c
--- vdr-1.1.13-orig/dvbdevice.c	Sat Oct 12 13:15:45 2002
+++ vdr-1.1.13/dvbdevice.c	Thu Oct 24 17:42:58 2002
@@ -785,7 +788,7 @@
 void cDvbDevice::SetAudioTrackDevice(int Index)
 {
   if (0 <= Index && Index < NumAudioTracks()) {
-     DelPid(pidHandles[ptAudio].pid);
+     //XXX DelPid(pidHandles[ptAudio].pid);
      AddPid(Index ? aPid2 : aPid1, ptAudio);
      }
 }

The problem seems to be, that DelPid() closes the demux
filehandle if no one else uses the PID. This seems to disrupt the
decoding.

Don't try to switch the audio while recording, this will ruin
your recording. I don't see a easy solution for this, may be we
should disable audio switching while recording on the primary
interface?

I also noticed that switching the audio stream doesn't works, if
you are watching a channel in transfer mode. Is this intended?

Klaus?

-- 
Stefan Huelswitt
huels@iname.com  | http://home.pages.de/~nathan


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



Home | Main Index | Thread Index