diff src/ushare.c @ 152:30e91361506a

EXPERIMENTAL: Enable change phisical channel by DLNA.(ISDB-T only)
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sun, 02 Sep 2012 01:59:27 +0900
parents 066f33b2213a
children 726fe10d9e4a
line wrap: on
line diff
--- a/src/ushare.c	Fri Aug 31 23:39:46 2012 +0900
+++ b/src/ushare.c	Sun Sep 02 01:59:27 2012 +0900
@@ -83,6 +83,7 @@
 ushare_new (void)
 {
   extern thread_data *gp_tdata;
+  extern struct channel_info_list *channel_list;
   thread_data *tdata = gp_tdata;
   struct ushare_t *ut = (struct ushare_t *) malloc (sizeof (struct ushare_t));
   char model_name[32];
@@ -137,6 +138,9 @@
     return NULL;
   ut->request_channel[0] = '\0';
   ut->nr_channel         = 0;
+  ut->channel_list = channel_list;
+  ut->sid = NULL;
+  ut->tp  = NULL;
 
   return ut;
 }
@@ -905,6 +909,8 @@
     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);