Re: [ANNOUNCE] VDR developer version 1.7.19

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

 



Am 19.06.2011 12:41, schrieb Klaus Schmidinger:
> - The initial channel is now stored by the channel ID in the setup.conf file, in
>   order to avoid problems in case channels are reordered or deleted (reported by
>   Lars Bläser).

This change includes a change to cMenuEditChanItem to accept a cString
to a channel id as parameter, however the changes are never written
back. As consequence, the initial channel always reverts to the previous
value when leaving the misc setup menu.

The attached patch fixes this.

Cheers,

Udo
--- menuitems.c.bak	2011-08-10 22:25:25.000000000 +0200
+++ menuitems.c	2011-08-10 22:30:40.000000000 +0200
@@ -822,9 +822,14 @@
      cChannel *channel = Channels.GetByNumber(*value);
      snprintf(buf, sizeof(buf), "%d %s", *value, channel ? channel->Name() : "");
      SetValue(buf);
+     if (channelID)
+        *channelID = channel->GetChannelID().ToString();
      }
-  else if (noneString)
+  else if (noneString) {
      SetValue(noneString);
+     if (channelID)
+        *channelID = "";
+     }
 }
 
 eOSState cMenuEditChanItem::ProcessKey(eKeys Key)
_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[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