From patchwork Wed Aug 10 18:41:20 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Brachold X-Patchwork-Id: 11970 Received: from web1.dns-net.de ([212.91.231.162]) by www.linuxtv.org with esmtp (Exim 4.34) id 1E2vW4-0001kE-Pp for vdr@linuxtv.org; Wed, 10 Aug 2005 20:41:28 +0200 Received: from wopr.deltab.de (tc07-n66-096.de.inter.net [213.73.66.96]) by web1.dns-net.de (8.11.6/8.11.6) with ESMTP id j7AIfPD13144 for ; Wed, 10 Aug 2005 20:41:25 +0200 From: Andreas Brachold To: vdr@linuxtv.org Date: Wed, 10 Aug 2005 20:41:20 +0200 Message-Id: <1123699280.6422.17.camel@wopr.deltab.de> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Subject: [vdr] vdr create zerosize info.vdr X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2005 18:41:28 -0000 Status: O X-Status: X-Keywords: X-UID: 4091 Hi, I'm notice, that's vdr(1.3.28) create a empty info.vdr for recordings on some cases. (A file with 0 bytes size) I think follow cause are responsible, the eye-catching timer was create on channel without epg data (Event are undefined) and this timer was defined without summary. the attached file, should fix this Cu, Andreas diff -Nur vdr-1.3.28-org/recording.c vdr-1.3.28my/recording.c --- vdr-1.3.28-org/recording.c 2005-08-06 11:53:21.000000000 +0200 +++ vdr-1.3.28my/recording.c 2005-08-10 19:46:45.000000000 +0200 @@ -425,6 +425,9 @@ lifetime = Timer->Lifetime(); // handle info: info = new cRecordingInfo(Event); + // Set data ifn't defined from associated Event + if (isempty(info->Title())) + info->SetData(Timer->File(), NULL, Timer->Summary()); // this is a somewhat ugly hack to get the 'summary' information from the // timer into the recording info, but it saves us from having to actually // copy the entire event data: