From: Andreas Monzner Date: Tue, 20 Dec 2005 13:24:19 +0000 (+0000) Subject: needed for files > 2GB X-Git-Tag: 2.6.0~4642 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/bac62ae64bc2b0cba82a26daec4b3623cae3a859?ds=sidebyside needed for files > 2GB --- diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index 7e937e6f..c310d49d 100644 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -680,7 +680,7 @@ RESULT eDVBChannel::playFile(const char *file) return -ENODEV; } - m_pvr_fd_src = open(file, O_RDONLY); + m_pvr_fd_src = open(file, O_RDONLY|O_LARGEFILE); if (m_pvr_fd_src < 0) { eDebug("can't open PVR m_pvr_fd_src file %s (%m)", file); diff --git a/lib/service/servicedvbrecord.cpp b/lib/service/servicedvbrecord.cpp index 454c2be1..cfcfe8b4 100644 --- a/lib/service/servicedvbrecord.cpp +++ b/lib/service/servicedvbrecord.cpp @@ -24,7 +24,7 @@ void eDVBServiceRecord::serviceEvent(int event) { eDebug("Recording to %s...", m_filename.c_str()); ::remove(m_filename.c_str()); - int fd = ::open(m_filename.c_str(), O_WRONLY|O_CREAT, 0644); + int fd = ::open(m_filename.c_str(), O_WRONLY|O_CREAT|O_LARGEFILE, 0644); if (fd == -1) { eDebug("eDVBServiceRecord - can't open hardcoded recording file!");