Changeset 38545 for titan/titan/epgscan.h
- Timestamp:
- 09/04/16 09:41:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/epgscan.h
r32030 r38545 133 133 char* tmpstr = NULL, *chname = NULL; 134 134 FILE* fd = NULL; 135 135 136 136 debug(400, "epgscan thread start, wait for right time"); 137 137 138 138 //fd = fopen(EPGSCANLOG, "w"); 139 139 //if(fd == NULL) … … 167 167 else 168 168 fprintf(fd, "epgscan thread start, wait for right time\n"); 169 169 170 170 //wait for right time 171 171 while(self->aktion != STOP && time(NULL) < 1072224000) // 01.01.2004 … … 190 190 while(node != NULL && self->aktion != STOP) 191 191 { 192 192 193 193 //wait for end recording 194 194 while(self->aktion != STOP && (status.recording > 0 || status.timeshift > 0)) 195 195 usleep(1 * 1000000); 196 if(self->aktion == STOP) break; 197 196 if(self->aktion == STOP) break; 197 198 198 chnode = getchannel(node->serviceid, node->transponderid); 199 199 if(chnode == NULL) 200 200 { 201 201 debug(400, "epgscan channel not found sid=%d, tid=%llu", node->serviceid, node->transponderid); 202 if(fd != NULL) fprintf(fd, " epgscanchannel not found sid=%d, tid=%llu\n", node->serviceid, node->transponderid);202 if(fd != NULL) fprintf(fd, "channel not found sid=%d, tid=%llu\n", node->serviceid, node->transponderid); 203 203 node = node->next; 204 204 continue; … … 213 213 { 214 214 debug(400, "epgscan channel same as aktchannel channel=%s sid=%d, tid=%llu", chname, node->serviceid, node->transponderid); 215 if(fd != NULL) fprintf(fd, " epgscan channel same as aktchannel channel=%s sid=%d, tid=%llu\n", chname, node->serviceid, node->transponderid);215 if(fd != NULL) fprintf(fd, "channel same as activ channel channel=%s sid=%d, tid=%llu\n", chname, node->serviceid, node->transponderid); 216 216 node = node->next; 217 217 continue; … … 222 222 { 223 223 debug(400, "epgscan transponer already scanned channel=%s tid=%llu", chname, node->transponderid); 224 if(fd != NULL) fprintf(fd, " epgscan transponer already scanned channel=%s tid=%llu\n", chname, node->transponderid);224 if(fd != NULL) fprintf(fd, "transponder already scanned channel=%s tid=%llu\n", chname, node->transponderid); 225 225 node = node->next; 226 226 continue; … … 234 234 { 235 235 debug(400, "epgscan no free frontend found channel=%s", chname); 236 if(fd != NULL) fprintf(fd, " epgscanno free frontend found channel=%s\n", chname);236 if(fd != NULL) fprintf(fd, "no free frontend found channel=%s\n", chname); 237 237 node = node->next; 238 238 continue; … … 254 254 { 255 255 debug(400, "epgscan unknown frontend channel=%s", chname); 256 if(fd != NULL) fprintf(fd, " epgscanunknown frontend channel=%s\n", chname);256 if(fd != NULL) fprintf(fd, "unknown frontend channel=%s\n", chname); 257 257 node = node->next; 258 258 continue; … … 263 263 { 264 264 debug(400, "epgscan frontend tune failed channel=%s", chname); 265 if(fd != NULL) fprintf(fd, " epgscanfrontend tune failed channel=%s\n", chname);265 if(fd != NULL) fprintf(fd, "frontend tune failed channel=%s\n", chname); 266 266 node = node->next; 267 267 continue; … … 269 269 270 270 debug(400, "epgscan scanning channel=%s, sid=%d, tid=%llu, frontend=%s", chname, chnode->serviceid, chnode->transponderid, fenode->feshortname); 271 if(fd != NULL) fprintf(fd, " epgscanscanning channel=%s, sid=%d, tid=%llu, frontend=%s\n", chname, chnode->serviceid, chnode->transponderid, fenode->feshortname);271 if(fd != NULL) fprintf(fd, "scanning channel=%s, sid=%d, tid=%llu, frontend=%s\n", chname, chnode->serviceid, chnode->transponderid, fenode->feshortname); 272 272 273 273 if(chnode->transponder != NULL) chnode->transponder->lastepg = 0; … … 284 284 { 285 285 debug(400, "epgscan frontend locked channel=%s frontend=%s", chname, fenode->feshortname); 286 if(fd != NULL) fprintf(fd, " epgscanfrontend locked channel=%s frontend=%s\n", chname, fenode->feshortname);287 } 288 289 node = node->next; 290 } 291 286 if(fd != NULL) fprintf(fd, "frontend locked channel=%s frontend=%s\n", chname, fenode->feshortname); 287 } 288 289 node = node->next; 290 } 291 292 292 //write only epg 293 293 writeallconfig(2); … … 295 295 end: 296 296 epgscanlistclearscantime(); 297 297 298 298 if(fd != NULL) 299 299 { … … 509 509 if(ret < 0) 510 510 { 511 perr("writ ting file %s", filename);511 perr("writing file %s", filename); 512 512 } 513 513 node = node->next;
Note: See TracChangeset
for help on using the changeset viewer.