]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Save channels upon add from web-ui 231/head
authorKristofer Karlsson <kristofer.karlsson@gmail.com>
Thu, 6 Dec 2012 19:39:41 +0000 (20:39 +0100)
committerKristofer Karlsson <kristofer.karlsson@gmail.com>
Thu, 24 Jan 2013 16:51:23 +0000 (17:51 +0100)
src/channels.c

index 970da8e64a432dbebc4d493f7a4e32d66c89de37..f33fdac6dc5bd8344f864e0f7a7be1f1dc94c521 100644 (file)
@@ -200,7 +200,9 @@ channel_create2(const char *name, int number)
 channel_t *
 channel_create ( void )
 {
-  return channel_create2(NULL, 0);
+  channel_t *ch = channel_create2(NULL, 0);
+  channel_save(ch);
+  return ch;
 }
 
 /**