Changeset 20535
- Timestamp:
- 03/17/13 11:57:18 (11 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/service.h
r20510 r20535 693 693 if(status.timeshift == 1 && flag != 2) 694 694 { 695 if(status. asktimeshift == 0)695 if(status.timeshifttype == 0 && status.asktimeshift == 0) 696 696 rcret = textbox(_("Message"), _("Timeshift is running !!!\nStop it and switch ?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 400, 10, 0); 697 697 -
titan/titan/timeshift.h
r20477 r20535 17 17 { 18 18 status.timeshiftstart = time(NULL); 19 status.timeshiftpos = lseek64(snode->recdstfd, 0, SEEK_ SET);19 status.timeshiftpos = lseek64(snode->recdstfd, 0, SEEK_CUR); 20 20 } 21 21 } … … 63 63 char* file = NULL; 64 64 65 if(flag == 1 && status.timeshifttype == 1 && status.playing == 0 && status.timeshiftpos > 0) 66 return; 65 67 if(flag == 0 && status.timeshifttype == 1) 66 68 { … … 69 71 } 70 72 71 73 struct service* snode = getservice(RECORDTIMESHIFT, flag); 72 74 73 75 if(status.playspeed != 0 || status.slowspeed != 0) … … 144 146 } 145 147 } 146 else 148 else if(status.playing == 0 && status.timeshifttype == 1) 149 { 150 status.playercan = 0x7FFF; 151 *playinfobarstatus = 1; 152 *playinfobarcount = 0; 153 if(snode != NULL) screenplayinfobar(snode->recname, NULL, 0, 1, 4); 154 } 155 else if(status.playing == 1) 147 156 { 148 157 if(status.playspeed != 0 || status.slowspeed != 0) … … 155 164 } 156 165 166 if(status.playing == 0) return; 167 157 168 status.slowspeed = 0; 158 169 status.playspeed = 0; … … 162 173 *playinfobarstatus = 1; 163 174 *playinfobarcount = 0; 164 screenplayinfobar(snode->recname, NULL, 0, 1, 4);175 if(snode != NULL) screenplayinfobar(snode->recname, NULL, 0, 1, 4); 165 176 } 166 177
Note: See TracChangeset
for help on using the changeset viewer.