diff src/ushare.c @ 146:066f33b2213a

EXPERIMENTAL: Select a particular program from multi-channel.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Tue, 21 Aug 2012 04:21:11 +0900
parents 2a9ac5ce2c7e
children 30e91361506a
line wrap: on
line diff
--- a/src/ushare.c	Thu Aug 16 21:57:34 2012 +0900
+++ b/src/ushare.c	Tue Aug 21 04:21:11 2012 +0900
@@ -128,6 +128,16 @@
   pthread_mutex_init (&ut->termination_mutex, NULL);
   pthread_cond_init (&ut->termination_cond, NULL);
 
+#define MAX_CHANNELS 512
+  ut->channel_name = malloc(sizeof(char*)*MAX_CHANNELS);
+  if (!ut->channel_name)
+    return NULL;
+  ut->location_name = malloc(sizeof(char*)*MAX_CHANNELS);
+  if (!ut->location_name)
+    return NULL;
+  ut->request_channel[0] = '\0';
+  ut->nr_channel         = 0;
+
   return ut;
 }
 
@@ -737,7 +747,7 @@
 {
   printf (_("%s (version %s), Recoding DTV and a lightweight UPnP A/V and DLNA Media Server.\n"),
           PACKAGE_NAME, VERSION);
-  printf (_("Naoya OYAMA (C) 2010.\n"));
+  printf (_("Naoya OYAMA (C) 2010-2012.\n"));
   printf (_("See http://hg.honeyplanet.jp/pt1.oyama/ for updates.\n"));
 }
 
@@ -895,8 +905,6 @@
     return NULL;
   }
 
-  build_metadata_list (ut);
-
   /* Let main sleep until it's time to die... */
   pthread_mutex_lock (&ut->termination_mutex);
   pthread_cond_wait (&ut->termination_cond, &ut->termination_mutex);