[vdr] [ANNOUNCE] DVB subtitles 0.3.9

Rolf Ahrenberg rahrenbe at cc.hut.fi
Sat Jan 21 13:28:10 CET 2006


On Sat, 21 Jan 2006, Pekka Virtanen wrote:

> There is a maintenance release of the DVB subtitles plugin available at:
> http://virtanen.org/vdr/subtitles/
>
> 2006-01-21: Version 0.3.9
> -Compability with VDR versions >= 1.3.38 (Thanks to Ville Skyttä)
> -Patch for VDR-1.3.39 (Thanks to Rolf Ahrenberg)

Satellite users might want to try my subchannels fix patch 
(vdr-subtitles-0.3.9-subchannels-fix.diff) that should prevent erroneus 
streams to be added into subchannels.conf.

diff -Nru subtitles-0.3.9/subfilter.c subtitles-0.3.9-subchannels-fix/subfilter.c
--- subtitles-0.3.9/subfilter.c	2006-01-21 11:24:18.000000000 +0200
+++ subtitles-0.3.9-subchannels-fix/subfilter.c	2006-01-21 13:25:04.000000000 +0200
@@ -169,11 +169,13 @@
      free(buffer);

      asprintf(&buffer, "%s:%d:", *channelId.ToString(), userLanguage);
+    bool found = false;
      bool first = true;
      for (tSubtitleStream* stream = streams.First(); stream; stream = streams.Next(stream))
      {
  	if (stream->languageIndex != -1)
  	{
+	    found = true;
  	    char* buffer2 = NULL;
  	    asprintf(&buffer2, first?"%s%s":"%s,%s",buffer,stream->ToString());
  	    free(buffer);
@@ -181,6 +183,9 @@
  	    first = false;
  	}
      }
+    if (!found)
+	return NULL;
+
      return buffer;
  }

BR,
--
rofa



More information about the vdr mailing list