summaryrefslogtreecommitdiff
path: root/displaychannelview.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-05-03 13:42:44 +0200
committerkamel5 <kamel5 (at) gmx (dot) net>2018-05-03 13:42:44 +0200
commit39dc33f360031e86e4c08f969054f6b555e738ae (patch)
tree1dffc5ff014b8871da62a431c154cffcf49e3828 /displaychannelview.c
parent0ae15aebbf31c52fd676e1d68ee45402b857750d (diff)
downloadskin-nopacity-39dc33f360031e86e4c08f969054f6b555e738ae.tar.gz
skin-nopacity-39dc33f360031e86e4c08f969054f6b555e738ae.tar.bz2
Do locking for vdr-2.3.x
Diffstat (limited to 'displaychannelview.c')
-rw-r--r--displaychannelview.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/displaychannelview.c b/displaychannelview.c
index a910491..9c6a671 100644
--- a/displaychannelview.c
+++ b/displaychannelview.c
@@ -779,9 +779,10 @@ void cNopacityDisplayChannelView::DrawChannelGroups(const cChannel *Channel, cSt
std::string cNopacityDisplayChannelView::GetChannelSep(const cChannel *channel, bool prev) {
std::string sepName = "";
- const cChannel *sep = prev ? Channels.Prev(channel) :
- Channels.Next(channel);
- for (; sep; (prev)?(sep = Channels.Prev(sep)):(sep = Channels.Next(sep))) {
+ LOCK_CHANNELS_READ;
+ const cChannel *sep = prev ? Channels->Prev(channel) :
+ Channels->Next(channel);
+ for (; sep; (prev)?(sep = Channels->Prev(sep)):(sep = Channels->Next(sep))) {
if (sep->GroupSep()) {
sepName = sep->Name();
break;
@@ -798,7 +799,8 @@ void cNopacityDisplayChannelView::DrawSourceInfo(void) {
channelInfo = cString::sprintf("%s #%d", source->Description(), cDevice::ActualDevice()->DeviceNumber());
}
if (cRecordControls::Active()) {
- cSortedTimers SortedTimers;
+ LOCK_TIMERS_READ;
+ cSortedTimers SortedTimers(Timers);
bool first = true;
int truncPos = 0;
for (int i = 0; i < SortedTimers.Size(); i++)