diff options
author | oskwon <kos@dev3> | 2014-06-12 13:23:16 (GMT) |
---|---|---|
committer | oskwon <kos@dev3> | 2014-06-12 13:23:16 (GMT) |
commit | f85f176807216ef64881289a4278abb9fc741eba (patch) | |
tree | 7889b5786f40bb40dd73d0890484fa0eeed2ff21 /src | |
parent | 7502eda44f0144f415808e2d372b061e40885b4e (diff) |
Fix bug for large file.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 2 | ||||
-rw-r--r-- | src/openpli-streamproxy/mpegts.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 99389a4..9369206 100644 --- a/src/Makefile +++ b/src/Makefile @@ -24,7 +24,7 @@ LDFLAGS ?= #CFLAGS += -Wno-unused-result -CFLAGS += -O2 +CFLAGS += -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 CXX=$(CROSS)g++ LD=$(CROSS)ld diff --git a/src/openpli-streamproxy/mpegts.cpp b/src/openpli-streamproxy/mpegts.cpp index 1f0752b..c6ab15f 100644 --- a/src/openpli-streamproxy/mpegts.cpp +++ b/src/openpli-streamproxy/mpegts.cpp @@ -29,7 +29,7 @@ MpegTS::MpegTS(string filename, bool request_time_seek_in) throw(trap) : private_fd(true), request_time_seek(request_time_seek_in) { - if((fd = open(filename.c_str(), O_RDONLY, 0)) < 0) + if((fd = open(filename.c_str(), O_RDONLY | O_LARGEFILE, 0)) < 0) throw(trap("MpegTS::MpegTS: cannot open file")); init(); |