Hallo,
die hab ich bis jetzt gefunden.
Was macht Sinn, was nicht, gibt's da noch mehr?
Für das xine-plugin
http://www.linuxtv.org/piperma…/2009-January/019217.html
Diff
--- vdr-1.7.2/config.h~ 2009-01-14 21:25:50.000000000 +0100
+++ vdr-1.7.2/config.h 2009-01-14 21:25:55.000000000 +0100
@@ -27,8 +27,8 @@
// The plugin API's version number:
-#define APIVERSION "1.7.0"
-#define APIVERSNUM 10700 // Version * 10000 + Major * 100 + Minor
+#define APIVERSION "1.7.1"
+#define APIVERSNUM 10701 // Version * 10000 + Major * 100 + Minor
// When loading plugins, VDR searches them by their APIVERSION, which
// may be smaller than VDRVERSION in case there have been no changes to
Alles anzeigen
[ANNOUNCE] VDR developer version 1.7.2
Diff
--- vdr-1.7.2/dvbdevice.c~ 2009-01-14 22:19:42.000000000 +0100
+++ vdr-1.7.2/dvbdevice.c 2009-01-17 12:04:04.000000000 +0100
@@ -1384,20 +1384,12 @@ bool cDvbDevice::Flush(int TimeoutMs)
int cDvbDevice::PlayVideo(const uchar *Data, int Length)
{
- int w;
- do {
- w = WriteAllOrNothing(fd_video, Data, Length, 1000, 10);
- } while (w != Length);
- return w;
+ return WriteAllOrNothing(fd_video, Data, Length, 1000, 10);
}
int cDvbDevice::PlayAudio(const uchar *Data, int Length, uchar Id)
{
- int w;
- do {
- w = WriteAllOrNothing(fd_audio, Data, Length, 1000, 10);
- } while (w != Length);
- return w;
+ return WriteAllOrNothing(fd_audio, Data, Length, 1000, 10);
}
int cDvbDevice::PlayTsVideo(const uchar *Data, int Length)
Alles anzeigen
[ANNOUNCE] VDR developer version 1.7.2
Diff
--- vdr-1.7.2/nit.c~ 2008/12/06 15:46:50 2.2
+++ vdr-1.7.2/nit.c 2008/12/20 10:57:50
@@ -129,7 +129,7 @@
char Polarization = Polarizations[sd->getPolarization()];
static int CodeRates[] = { FEC_NONE, FEC_1_2, FEC_2_3, FEC_3_4, FEC_5_6, FEC_7_8, FEC_8_9, FEC_3_5, FEC_4_5, FEC_9_10, FEC_AUTO, FEC_AUTO, FEC_AUTO, FEC_AUTO, FEC_AUTO, FEC_NONE };
int CodeRate = CodeRates[sd->getFecInner()];
- static int Modulations[] = { QPSK, PSK_8, QAM_16 };
+ static int Modulations[] = { QAM_AUTO, QPSK, PSK_8, QAM_16 };
int Modulation = Modulations[sd->getModulationType()];
int System = sd->getModulationSystem() ? SYS_DVBS2 : SYS_DVBS;
static int RollOffs[] = { ROLLOFF_35, ROLLOFF_25, ROLLOFF_20, ROLLOFF_AUTO };
Alles anzeigen
[ANNOUNCE] VDR developer version 1.7.3
Diff
--- vdr-1.7.2/device.c~ 2009-01-11 19:12:28.000000000 +0100
+++ vdr-1.7.2/device.c 2009-01-11 19:04:32.000000000 +0100
@@ -1502,6 +1502,7 @@
return Length;
}
+/* old stuff
int cDevice::PlayTsAudio(const uchar *Data, int Length)
{
bool PayloadStart = TsPayloadStart(Data);
@@ -1520,6 +1521,22 @@
}
return Length;
}
+*/
+
+int cDevice::PlayTsAudio(const uchar *Data, int Length)
+{
+ if (TsPayloadStart(Data)) {
+ int l;
+ while (const uchar *p = tsToPesAudio.GetPes(l)) {
+ int w = PlayAudio(p, l, 0);
+ if (w < 0)
+ return w;
+ }
+ tsToPesAudio.Reset();
+ }
+ tsToPesAudio.PutTs(Data, Length);
+ return Length;
+}
int cDevice::PlayTsSubtitle(const uchar *Data, int Length)
{
Alles anzeigen