Mailing List archive

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

[vdr] dvbplayer.1.2.6pre-mp2PlayAudio.diff



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

...

	- recordings (dvbplayer), to use MP2 patch dvbplayer.c:
		dvbplayer.1.2.6pre-mp2PlayAudio.diff

@Klaus:

this patch enables Audio plugin's (PlayAudio/Play),
to receive the MP2 audio, if selected 
- - and not to send DD/Ac3 all the time.

this is good for the new bitstreamout 0.48pre1,
or any other audio plugin cabable of MP2 ..

so new is (StripAudio):
	- call PlayAudio if MP2 is selected
	- strip AC3 data, if MP2 is selected,
	  like MP2 is stripped otherwise

i hope this patch can make it to 1.2.6 ..

cheers, sven

- -- 
health & wealth
mailto:sgoethel@jausoft.com
www   : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/
voice : +49-5121-999600 ; fax : +49-5121-999602
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/k2V+HdOA30NoFAARApPfAKCjBNx7Jz/aaqgweavWTui99RWx1wCeKQi6
QEmJ7c39gY77rgdr6ezte6M=
=h91A
-----END PGP SIGNATURE-----
--- vdr-1.2.6pre2/dvbplayer.c	2003-05-24 11:04:26.000000000 +0200
+++ vdr-1.2.6-sc0.3.3-softcsa007-jauremote-autopid-tech/dvbplayer.c	2003-10-20 05:12:50.000000000 +0200
@@ -323,7 +323,9 @@
             int l = b[i + 4] * 256 + b[i + 5] + 6;
             switch (c) {
               case 0xBD: // dolby
-                   if (Except)
+                   if (!Except || c != Except)
+                      memset(&b[i], 0x00, min(l, Length-i));
+                   else if (Except && c==Except)
                       PlayAudio(&b[i], l);
                    // continue with deleting the data - otherwise it disturbs DVB replay
               case 0xC0 ... 0xC1: // audio
@@ -331,6 +333,8 @@
                       canToggleAudioTrack = true;
                    if (!Except || c != Except)
                       memset(&b[i], 0x00, min(l, Length-i));
+                   else if (Except && c==Except)
+                      PlayAudio(&b[i], l);
                    break;
               case 0xE0 ... 0xEF: // video
                    break;

Home | Main Index | Thread Index