[ANNOUNCE] DVB subtitles 0.3.9
Commit Message
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.
BR,
--
rofa
@@ -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;
}