Changeset 25693
- Timestamp:
- 01/17/14 13:26:14 (10 years ago)
- Location:
- titan/titan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/marker.h
r25681 r25693 381 381 unsigned long long startpos = 0; 382 382 off64_t prosec = 0, diff = 0; 383 384 if(status.autoseek == 2) 385 { 386 sleep(2); 387 status.autoseek = 1; 388 } 383 389 384 390 struct service* snode = getservice(RECORDPLAY, 0); -
titan/titan/play.h
r25645 r25693 1267 1267 unlink(epgfilename); 1268 1268 free(epgfilename); epgfilename = NULL; 1269 epgfilename = changefilenameext(file, ".as"); 1270 unlink(epgfilename); 1271 free(epgfilename); epgfilename = NULL; 1269 1272 } 1270 1273 ret = 1; … … 1601 1604 1602 1605 if(rcret == getrcconfigint("rcmenu", NULL)) { 1606 char* asfile = changefilenameext(file, ".as"); 1603 1607 if(status.autoseek == 0) { 1604 1608 status.autoseek = 1; 1605 1609 textbox(_("Message"), _("Marker autoseek is started"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0); 1606 1610 addtimer(&markerautoseek_thread, START, 10000, 1, NULL, NULL, NULL); 1611 FILE* testseek = fopen(asfile, "w"); 1612 if(testseek != NULL) 1613 { 1614 fprintf(testseek,"autoseek is started\n"); 1615 fclose(testseek); 1616 } 1607 1617 } 1608 1618 else { 1609 1619 status.autoseek = 0; 1610 1620 textbox(_("Message"), _("Marker autoseek is stopped"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0); 1621 unlink(asfile); 1611 1622 } 1623 free(asfile); asfile = NULL; 1612 1624 } 1613 1625 } -
titan/titan/player.h
r25645 r25693 44 44 int serviceid = 0; 45 45 int supermagic = -1; 46 int lastpos = 0; 46 47 struct channel* chnode = NULL; 47 48 struct service* snode = NULL; … … 89 90 } 90 91 92 lastpos = 0; 91 93 if(flag == 0 && getconfigint("showlastpos", NULL) == 1) 92 94 { … … 105 107 seekpos = seekpos - (seekpos % tssize); 106 108 lseek64(fd, atoll(skip1), SEEK_SET); 109 lastpos = 1; 107 110 } 108 111 free(skip1); skip1 = NULL; … … 123 126 } 124 127 128 if(status.playmarker != NULL) 129 { 130 char* testfile = changefilenameext(file, ".as"); 131 FILE* testseek = fopen(testfile, "r"); 132 if(testseek != NULL) 133 { 134 if(lastpos == 0) 135 lseek64(fd, status.playmarker->pos, SEEK_SET); 136 status.autoseek = 2; 137 addtimer(&markerautoseek_thread, START, 10000, 1, NULL, NULL, NULL); 138 fclose(testseek); 139 } 140 free(testfile); testfile = NULL; 141 } 142 125 143 delchannel(serviceid, 0, 1); 126 144 chnode = createchannel("player", 0, 0, serviceid, 99, 0, -1, -1, -1, -1, 0, -1);
Note: See TracChangeset
for help on using the changeset viewer.