]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Some tidying up.
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 25 May 2012 21:15:02 +0000 (22:15 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 30 Jul 2012 14:47:20 +0000 (15:47 +0100)
src/channels.c

index 76659115ffe4a1698396721ce4ab4209f876a63b..58ff4f6f30126f78d7fe0bf4e54877acce54dcf0 100644 (file)
@@ -39,8 +39,6 @@
 #include "dvr/dvr.h"
 #include "htsp.h"
 
-//struct channel_list channels_not_xmltv_mapped;
-
 struct channel_tree channel_name_tree;
 static struct channel_tree channel_identifier_tree;
 struct channel_tag_queue channel_tags;
@@ -492,8 +490,12 @@ channel_set_epg_source(channel_t *ch, epg_channel_t *ec)
     return;
 
   ch->ch_epg_channel = ec;
-  // TODO: should I do this?
-  htsp_channel_update(ch); // Not sure?
+
+  if(ec != NULL)
+    tvh_str_update(&ch->ch_icon, ec->icon);
+
+  channel_save(ch);
+  htsp_channel_update(ch);
 }
 
 /**