Created
September 6, 2012 04:58
-
-
Save xtuaok/3651414 to your computer and use it in GitHub Desktop.
recpt1で--sidによりEITを保存する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r b14397800eae recpt1/tssplitter_lite.c | |
--- a/recpt1/tssplitter_lite.c Wed Jun 27 06:56:33 2012 +0900 | |
+++ b/recpt1/tssplitter_lite.c Thu Sep 06 13:55:51 2012 +0900 | |
@@ -269,6 +269,13 @@ | |
{ | |
int result = TSS_NULL; | |
int i; | |
+ char **p; | |
+ int keep_eit = 0; | |
+ p = splitter->sid_list; | |
+ while (*p) { | |
+ if (!strcasecmp(*p, "eit")) keep_eit = 1; | |
+ p++; | |
+ } | |
// clear | |
if (splitter->pmt_counter == splitter->pmt_retain) { | |
@@ -291,6 +298,12 @@ | |
splitter->pids[i] -= 1; | |
} | |
} | |
+ if (keep_eit) { | |
+ splitter->pids[0x11] = 1; | |
+ splitter->pids[0x12] = 1; | |
+ splitter->pids[0x26] = 1; | |
+ splitter->pids[0x27] = 1; | |
+ } | |
fprintf(stderr, "Rescan PID End\n"); | |
} | |
@@ -536,6 +549,15 @@ | |
sprintf(chosen_sid, "%s %d", *chosen_sid ? chosen_sid : "", service_id); | |
break; | |
} | |
+ else if (!strcasecmp(*p, "eit")) { | |
+ /* EPG data */ | |
+ sid_found = TRUE; | |
+ *(pids+0x11) = 1; | |
+ *(pids+0x12) = 1; | |
+ *(pids+0x26) = 1; | |
+ *(pids+0x27) = 1; | |
+ break; | |
+ } | |
p++; | |
} /* while */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
これ、まれにSegVします。もう--sidを使うのやめて tssplitter で分離することにしました。