From 2c24c9494ac869c8812115d28f9ec1c96b74f95f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 9 Nov 2003 12:08:22 +0100 Subject: Fixed processing EPG data in case there is no title --- libdtv/libvdr/libvdr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libdtv/libvdr') diff --git a/libdtv/libvdr/libvdr.c b/libdtv/libvdr/libvdr.c index e041fd82..5f901258 100644 --- a/libdtv/libvdr/libvdr.c +++ b/libdtv/libvdr/libvdr.c @@ -118,7 +118,6 @@ struct LIST *createVdrProgramInfos (unsigned char *siBuffer) AddItemToText (Item->Text, VdrProgramInfo->ExtendedText); } - GotVdrProgramInfo = 1; } break; @@ -134,7 +133,6 @@ struct LIST *createVdrProgramInfos (unsigned char *siBuffer) VdrProgramInfo->ContentNibble2 = GetContentContentNibble2(Descriptor, j); } - GotVdrProgramInfo = 1; } break; @@ -147,12 +145,12 @@ struct LIST *createVdrProgramInfos (unsigned char *siBuffer) if (!strncmp (VdrProgramInfo->LanguageCode, Rating->LanguageCode, 3)) VdrProgramInfo->Rating = Rating->Rating; - GotVdrProgramInfo = 1; } break; } } if (GotVdrProgramInfo) xAddTail (Result, VdrProgramInfo); + else xMemFree (VdrProgramInfo); } return (Result); -- cgit v1.2.3