summaryrefslogtreecommitdiff
path: root/tools/backgroundwriter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/backgroundwriter.c')
-rw-r--r--tools/backgroundwriter.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/backgroundwriter.c b/tools/backgroundwriter.c
index f88f2c7e..f13a52a7 100644
--- a/tools/backgroundwriter.c
+++ b/tools/backgroundwriter.c
@@ -4,10 +4,14 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: backgroundwriter.c,v 1.5 2007-03-27 07:59:53 phintuka Exp $
+ * $Id: backgroundwriter.c,v 1.6 2008-02-04 23:54:06 phintuka Exp $
*
*/
+#define __STDC_FORMAT_MACROS
+#define __STDC_CONSTANT_MACROS
+#include <inttypes.h>
+
#include <stdint.h>
#include <unistd.h>
#include <netinet/tcp.h> // CORK, NODELAY
@@ -329,8 +333,7 @@ void cRawWriter::Action(void)
if(GetPos == NextHeaderPos) {
if(Count < 6)
LOGMSG("cBackgroundWriter @NextHeaderPos: Count < header size !");
- bool dummy;
- int packlen = pes_packet_len(Data, Count, dummy);
+ int packlen = pes_packet_len(Data, Count);
if(Count < packlen)
;//LOGMSG("Count = %d < %d", Count,
// header->len + sizeof(stream_tcp_header_t));