diff options
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c index 03d5e66..d22205c 100644 --- a/recording.c +++ b/recording.c @@ -333,8 +333,8 @@ int cUpdate::updateRecordingTable(int fullReload) #endif #if defined (APIVERSNUM) && (APIVERSNUM >= 20301) - LOCK_RECORDINGS_READ; - const cRecordings* recordings = Recordings; + LOCK_RECORDINGS_WRITE; + cRecordings* recordings = Recordings; // cRecordingsLock recordingsLock(false); // const cRecordings* recordings = recordingsLock.Recordings(); #else @@ -352,7 +352,7 @@ int cUpdate::updateRecordingTable(int fullReload) // ---------------- // update ... - for (const cRecording* rec = recordings->First(); rec; rec = recordings->Next(rec)) + for (cRecording* rec = recordings->First(); rec; rec = recordings->Next(rec)) { int insert; int fsk; |