From 2f41a8ec5ed722d22e6919e20737498f3a06cf13 Mon Sep 17 00:00:00 2001 From: methodus Date: Sun, 28 Oct 2012 22:13:52 +0100 Subject: Fixed invalid conversion from const to non-const. Thanks to Lucian Muresan --- plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3