From f69c0682c565477ac4632a86b0ebdc9c2ca3148a Mon Sep 17 00:00:00 2001 From: methodus Date: Tue, 1 Jan 2013 20:16:16 +0100 Subject: Fixed possible segfault if recordings have no valid event --- plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3