Mailing List archive

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

[vdr] Re: VDR developer version 1.3.14



On 24 Oct 2004 Tony Grant <tony@tgds.net> wrote:

> I cannot make the streamdev pluggin - I have read the mailing list but
> the patch doesn't change anything

I have made a experimental patch.
I only can say that it compiles, no further tests done.

diff -urN streamdev-0.3.1/client/device.c streamdev-0.3.1/client/device.c
--- streamdev-0.3.1/client/device.c	2004-02-17 21:29:43.000000000 +0100
+++ streamdev-0.3.1/client/device.c	2004-10-24 20:43:43.000000000 +0200
@@ -96,16 +96,9 @@
 
 bool cStreamdevDevice::GetTSPacket(uchar *&Data) {
   if (m_TSBuffer) {
-    int r = m_TSBuffer->Read();
-    if (r >= 0) {
-      Data = m_TSBuffer->Get();
-      return true;
-    } else if (FATALERRNO) {
-      LOG_ERROR;
-    	return false;
+    Data = m_TSBuffer->Get();
+    if(Data) return true;
     }
-  	return true;
-	}
   return false;
 }
 
diff -urN streamdev-0.3.1/remux/tsremux.h streamdev-0.3.1/remux/tsremux.h
--- streamdev-0.3.1/remux/tsremux.h	2003-09-24 20:33:31.000000000 +0200
+++ streamdev-0.3.1/remux/tsremux.h	2004-10-24 20:46:35.000000000 +0200
@@ -4,6 +4,10 @@
 #include "libdvbmpeg/transform.h"
 #include <vdr/remux.h>
 
+// The minimum amount of video data necessary to identify frames:
+#define MINVIDEODATA (16*1024) // just a safe guess (max. size of any frame block, plus some safety)
+#define RESULTBUFFERSIZE (MINVIDEODATA * 4)
+
 class cTSRemux {
 protected:
   uchar m_ResultBuffer[RESULTBUFFERSIZE];
 
-- 
Stefan Huelswitt
s.huelswitt@gmx.de  | http://www.muempf.de/




Home | Main Index | Thread Index