diff src/tssplitter_lite.c @ 149:a9f60d56d673

Fix DLNA problem
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sat, 25 Aug 2012 11:10:24 +0900
parents 066f33b2213a
children 30e91361506a
line wrap: on
line diff
--- a/src/tssplitter_lite.c	Wed Aug 22 22:06:09 2012 +0900
+++ b/src/tssplitter_lite.c	Sat Aug 25 11:10:24 2012 +0900
@@ -742,22 +742,24 @@
 			 * ushare 側(TV表示上)には channel_name を表示させる
 			 * TODO 局名も含めて入れたいなぁ
 			 */
+			if(!strcmp("all", sp->sid_list[0])) {
 #define CHANNEL_NAME_LENGTH (64)
-			ut->channel_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH);
-			if(!ut->channel_name[ut->nr_channel])
-				return TSS_NULL;
-			snprintf(ut->channel_name[ut->nr_channel],
-					CHANNEL_NAME_LENGTH,
-					"%d.ts",
-					avail_sids[k]);
-			ut->location_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH);
-			if(!ut->location_name[ut->nr_channel])
-				return TSS_NULL;
-			snprintf(ut->location_name[ut->nr_channel],
-					CHANNEL_NAME_LENGTH,
-					VIRTUAL_DIR "/%d.ts",
-					avail_sids[k]);
-			ut->nr_channel += 1;
+				ut->channel_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH);
+				if(!ut->channel_name[ut->nr_channel])
+					return TSS_NULL;
+				snprintf(ut->channel_name[ut->nr_channel],
+						CHANNEL_NAME_LENGTH,
+						"%d.ts",
+						avail_sids[k]);
+				ut->location_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH);
+				if(!ut->location_name[ut->nr_channel])
+					return TSS_NULL;
+				snprintf(ut->location_name[ut->nr_channel],
+						CHANNEL_NAME_LENGTH,
+						VIRTUAL_DIR "/%d.ts",
+						avail_sids[k]);
+				ut->nr_channel += 1;
+			}
 		}
 		// metadata list を作り直す
 		free_metadata_list(ut);