Dash:
[t2-trunk.git] / package / vdr / vdr-softdevice / hotfix-offset_t.patch
blobc1e5d03be06c83f6ae5136af219a5c2a72695262
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../vdr-softdevice/hotfix-offset_t.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Index: softdevice-cvs-20080922/mpeg2decoder.c
18 ===================================================================
19 --- softdevice-cvs-20080922.orig/mpeg2decoder.c
20 +++ softdevice-cvs-20080922/mpeg2decoder.c
21 @@ -1016,7 +1016,7 @@ static int read_packet_RingBuffer(void *
24 #if LIBAVFORMAT_BUILD >4625
25 -static offset_t seek_RingBuffer(void *opaque, offset_t offset, int whence)
26 +static int64_t seek_RingBuffer(void *opaque, int64_t offset, int whence)
27 #else
28 static int seek_RingBuffer(void *opaque, offset_t offset, int whence)
29 #endif
30 @@ -1135,7 +1135,7 @@ start:
31 return 0;
34 -int cMpeg2Decoder::seek(offset_t offset, int whence) {
35 +int cMpeg2Decoder::seek(int64_t offset, int whence) {
36 printf("unimplemented: seek offset %lld whence %d\n", (long long int)offset, whence);
37 return -EINVAL;
39 Index: softdevice-cvs-20080922/mpeg2decoder.h
40 ===================================================================
41 --- softdevice-cvs-20080922.orig/mpeg2decoder.h
42 +++ softdevice-cvs-20080922/mpeg2decoder.h
43 @@ -312,7 +312,7 @@ private:
44 bool packetMode;
45 public:
46 int read_packet(uint8_t *buf, int buf_size);
47 - int seek(offset_t offset, int whence);
48 + int seek(int64_t offset, int whence);
50 public:
51 cMpeg2Decoder(cAudioOut *AudioOut, cVideoOut *VideoOut);