Changeset 20535


Ignore:
Timestamp:
03/17/13 11:57:18 (11 years ago)
Author:
nit
Message:

[titan] pts next step

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/service.h

    r20510 r20535  
    693693                if(status.timeshift == 1 && flag != 2)
    694694                {
    695                         if(status.asktimeshift == 0)
     695                        if(status.timeshifttype == 0 && status.asktimeshift == 0)
    696696                                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);
    697697
  • titan/titan/timeshift.h

    r20477 r20535  
    1717                        {
    1818                                status.timeshiftstart = time(NULL);
    19                                 status.timeshiftpos = lseek64(snode->recdstfd, 0, SEEK_SET);
     19                                status.timeshiftpos = lseek64(snode->recdstfd, 0, SEEK_CUR);
    2020                        }               
    2121                }
     
    6363        char* file = NULL;
    6464
     65        if(flag == 1 && status.timeshifttype == 1 && status.playing == 0 && status.timeshiftpos > 0)
     66                return;
    6567        if(flag == 0 && status.timeshifttype == 1)
    6668        {
     
    6971        }
    7072 
    71   struct service* snode = getservice(RECORDTIMESHIFT, flag);
     73        struct service* snode = getservice(RECORDTIMESHIFT, flag);
    7274       
    7375        if(status.playspeed != 0 || status.slowspeed != 0)
     
    144146                }
    145147        }
    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)
    147156        {
    148157                if(status.playspeed != 0 || status.slowspeed != 0)
     
    155164        }
    156165       
     166        if(status.playing == 0) return;
     167
    157168        status.slowspeed = 0;
    158169        status.playspeed = 0;
     
    162173        *playinfobarstatus = 1;
    163174        *playinfobarcount = 0;
    164         screenplayinfobar(snode->recname, NULL, 0, 1, 4);
     175        if(snode != NULL) screenplayinfobar(snode->recname, NULL, 0, 1, 4);
    165176}
    166177
Note: See TracChangeset for help on using the changeset viewer.