summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2013-01-01 20:16:16 +0100
committermethodus <methodus@web.de>2013-01-01 20:16:16 +0100
commitf69c0682c565477ac4632a86b0ebdc9c2ca3148a (patch)
treee9e9438942ce065a191702d739d0fb43c781ce6d
parentdc34061786a0a165d388fa546331b2ea39141cc5 (diff)
downloadvdr-plugin-upnp-f69c0682c565477ac4632a86b0ebdc9c2ca3148a.tar.gz
vdr-plugin-upnp-f69c0682c565477ac4632a86b0ebdc9c2ca3148a.tar.bz2
Fixed possible segfault if recordings have no valid event
-rw-r--r--plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp b/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp
index f367c39..84b50a8 100644
--- a/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp
+++ b/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp
@@ -177,7 +177,7 @@ private:
metadata.SetProperty(cMetadata::Property(property::object::KEY_DESCRIPTION, tools::ToUTF8String(info->ShortText()?info->ShortText():"")));
metadata.SetProperty(cMetadata::Property(property::object::KEY_LONG_DESCRIPTION, tools::ToUTF8String(info->Description()?info->Description():"")));
- boost::posix_time::ptime date = boost::posix_time::from_time_t(info->GetEvent()->StartTime());
+ boost::posix_time::ptime date = boost::posix_time::from_time_t(info->GetEvent()?info->GetEvent()->StartTime():0);
metadata.SetProperty(cMetadata::Property(property::object::KEY_DATE, boost::gregorian::to_iso_extended_string(date.date())));
cMetadata::Resource resource;