diff options
author | methodus <methodus@web.de> | 2012-10-28 22:13:52 +0100 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-28 22:13:52 +0100 |
commit | 2f41a8ec5ed722d22e6919e20737498f3a06cf13 (patch) | |
tree | 6c6e1dc8b4205663cf86f61ed480a36db9f638ce | |
parent | 9478cdc825981329f3f864f14d61f51ae1ac0ace (diff) | |
download | vdr-plugin-upnp-2f41a8ec5ed722d22e6919e20737498f3a06cf13.tar.gz vdr-plugin-upnp-2f41a8ec5ed722d22e6919e20737498f3a06cf13.tar.bz2 |
Fixed invalid conversion from const to non-const. Thanks to Lucian Muresan
-rw-r--r-- | plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp | 4 |
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 |