Commit db532561 authored by conrad's avatar conrad

build fixes (to pass 'make distcheck')


git-svn-id: http://svn.annodex.net/liboggz/trunk@3625 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent bde0b604
......@@ -2,6 +2,7 @@
INCLUDES = -I$(top_builddir) -I$(top_builddir)/include \
-I$(top_srcdir)/include -I$(top_srcdir)/src/tools \
-I$(top_srcdir)/src/tests \
@OGG_CFLAGS@
OGGZDIR = ../../liboggz
......@@ -24,7 +25,7 @@ TESTS = httpdate_test
noinst_HEADERS = cgi.h cmd.h header.h httpdate.h oggz-chop.h timespec.h
oggz_chop_SOURCES = oggz-chop.c ../oggz_tools.c ../skeleton.c \
oggz_chop_SOURCES = oggz-chop.c $(srcdir)/../oggz_tools.c $(srcdir)/../skeleton.c \
cmd.c cgi.c header.c httpdate.c main.c timespec.c
oggz_chop_LDADD = $(OGGZ_LIBS) -lm
......
#include <stdio.h>
#include <string.h>
#include "oggz_tests.h"
......
......@@ -168,12 +168,12 @@ _ogg_page_free (const ogg_page * og)
}
static void
_ogg_page_set_eos (const ogg_page * og)
_ogg_page_set_eos (ogg_page * og)
{
if (og == NULL) return;
og->header[5] |= 0x04;
ogg_page_checksum_set (OGG_PAGE_CONST(og));
ogg_page_checksum_set (og);
}
static void
......@@ -571,7 +571,7 @@ read_plain (OGGZ * oggz, const ogg_page * og, long serialno, void * user_data)
fwrite_ogg_page (state->outfile, og);
} else if (state->end != -1.0 && page_time > state->end) {
/* This is the first page past the end time; set EOS */
_ogg_page_set_eos (og);
_ogg_page_set_eos ((ogg_page *)og);
fwrite_ogg_page (state->outfile, og);
/* Stop handling this track */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment