vdr shutdown handling / streamdev plugin
Commit Message
Jörg Wendel wrote:
>> For plugin developers, I suggest to keep it simple in there. Its
>> probably a good idea to tr() the string just once and cache it afterwards.
>
> this would be a nice change in the streamdev plugin.
The attached patch does it.
This patch has one side effect: The message wont be re-translated if the
selected VDR OSD language is changed, you have to restart to see
language changes.
Cheers,
Udo
@@ -59,7 +59,9 @@
{
if (cStreamdevServer::Active())
{
- return tr("Streaming active");
+ static const char *Message = NULL;
+ if (!Message) Message = tr("Streaming active");
+ return Message;
}
return NULL;
}