[PATCH] vdr-1.3.39 & crash bug in schedule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rolf Ahrenberg wrote:
> 
> Hi,
> 
> here's a little patch to prevent crashing on Digita network, that uses 
> 'NULL' in some event titles.

After some thought I believe it's probably better to do the following,
because an event should always have at least a title.

Klaus


--- epg.c       2006/01/20 13:42:38     1.50
+++ epg.c       2006/01/20 14:09:48
@@ -422,12 +422,17 @@
    strreplace(description, '\x86', ' ');
    strreplace(description, '\x87', ' ');

+  if (!title) {
+     // we don't want any "(null)" titles
+     title = strcpyrealloc(title, tr("No title"));
+     EpgBugFixStat(12, ChannelID());
+     }
+
    if (Setup.EPGBugfixLevel == 0)
       return;

    // Some TV stations apparently have their own idea about how to fill in the
    // EPG data. Let's fix their bugs as good as we can:
-  if (title) {

       // Some channels put the ShortText in quotes and use either the ShortText
       // or the Description field, depending on how long the string is:
@@ -609,12 +614,6 @@
              }
          }
       }
-  else {
-     // we don't want any "(null)" titles
-     title = strcpyrealloc(title, tr("No title"));
-     EpgBugFixStat(12, ChannelID());
-     }
-}

  // --- cSchedule -------------------------------------------------------------


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux