Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: VDR developer version 1.1.33
On Sun, May 18, 2003 at 05:34:13PM +0200, Klaus Schmidinger wrote:
> VDR developer version 1.1.32 is now available at
>
> ftp://ftp.cadsoft.de/vdr/Developer/vdr-1.1.32.tar.bz2
Please don't forget to move StripAudioPackets() from the
inner fetching loop in cDvbPlayer::Action() to the playing
part to ensure that external audio (e.g. AC3) stay in
sync after pressing Pause. The enclosed patch simply just
do that.
Werner
----------------------------------------------------------------------
--- dvbplayer.c
+++ dvbplayer.c Wed Apr 23 11:55:31 2003
@@ -473,8 +473,8 @@
}
int r = nonBlockingFileReader->Read(replayFile, b, Length);
if (r > 0) {
- if (AudioTrack >= 0)
- StripAudioPackets(b, r, AudioTrack);
+ if (AudioTrack == 0)
+ StripAudioPackets(b, r);
readFrame = new cFrame(b, -r, ftUnknown, readIndex); // hands over b to the ringBuffer
b = NULL;
}
@@ -510,6 +510,8 @@
if (!p) {
p = playFrame->Data();
pc = playFrame->Count();
+ if (p && AudioTrack > 0)
+ StripAudioPackets(playFrame->StripData(), pc, AudioTrack);
}
if (p) {
int w = PlayVideo(p, pc);
----------------------------------------------------------------------
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index