needed for files > 2GB
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 20 Dec 2005 13:24:19 +0000 (13:24 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 20 Dec 2005 13:24:19 +0000 (13:24 +0000)
lib/dvb/dvb.cpp
lib/service/servicedvbrecord.cpp

index 7e937e6..c310d49 100644 (file)
@@ -680,7 +680,7 @@ RESULT eDVBChannel::playFile(const char *file)
                return -ENODEV;
        }
        
                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);
        if (m_pvr_fd_src < 0)
        {
                eDebug("can't open PVR m_pvr_fd_src file %s (%m)", file);
index 454c2be..cfcfe8b 100644 (file)
@@ -24,7 +24,7 @@ void eDVBServiceRecord::serviceEvent(int event)
                {
                        eDebug("Recording to %s...", m_filename.c_str());
                        ::remove(m_filename.c_str());
                {
                        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!");
                        if (fd == -1)
                        {
                                eDebug("eDVBServiceRecord - can't open hardcoded recording file!");