[ANNOUNCE] DVB subtitles 0.3.9

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

 



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


[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