summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp b/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp
index 07f4fb4..aabbca5 100644
--- a/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp
+++ b/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp
@@ -150,8 +150,8 @@ private:
resource.SetProtocolInfo(ProtocolInfo("video/mpeg", fourthfield).ToString());
int duration = 0;
- cEvent* event = NULL;
- if((event = info->GetEvent()) && event->Duration() > 0){
+ const cEvent* event = info->GetEvent();
+ if(event && event->Duration() > 0){
duration = event->Duration();
}
#if VDRVERSNUM > 10723