diff src/tssplitter_lite.c @ 170:4f3640bf350d

Change display name of DLNA. - old_display name: (recpt1:devN) - new_display name: (hostname: /dev/ptXdevY) - change UUID format.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Wed, 17 Oct 2012 23:47:16 +0900
parents b21f1e823ec3
children 863ac6807ee3
line wrap: on
line diff
--- a/src/tssplitter_lite.c	Sun Oct 07 00:37:34 2012 +0900
+++ b/src/tssplitter_lite.c	Wed Oct 17 23:47:16 2012 +0900
@@ -608,7 +608,7 @@
 		/* prescan SID/PMT */
 		for(i = 13, j = 0; i < (size + 8) - 4; i = i + 4) {
 			pid = GetPid(&buf[i+2]);
-			if(pid == 0x0010)
+			if(pid == NIT)
 				continue;
 			avail_sids[j] = (buf[i] << 8) + buf[i+2];
 			sp->avail_pmts[j] = pid;
@@ -621,7 +621,7 @@
 		/* 最終 4 バイトはCRCなので飛ばす */
 		for(i = 13; i < (size + 8) - 4; i = i + 4) {
 			pid = GetPid(&buf[i+2]);
-			if(pid==0x0010)
+			if(pid == NIT)
 				continue;
 
 			service_id = (buf[i] << 8) + buf[i+1];