From a995c63c0d6c24bbe23935b901bf735c18833adb Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 15 Feb 2011 20:38:41 +0100 Subject: trade open flags to openPVR function refs bug #672 --- lib/dvb/demux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/dvb/demux.cpp') diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp index 37eae19f..f4d86185 100644 --- a/lib/dvb/demux.cpp +++ b/lib/dvb/demux.cpp @@ -85,11 +85,11 @@ int eDVBDemux::openDemux(void) return ::open(filename, O_RDWR); } -int eDVBDemux::openDVR(void) +int eDVBDemux::openDVR(int flags) { char filename[128]; snprintf(filename, 128, "/dev/dvb/adapter%d/dvr%d", adapter, demux); - return ::open(filename, O_WRONLY); + return ::open(filename, flags); } DEFINE_REF(eDVBDemux) -- cgit v1.2.3