Changeset 20848


Ignore:
Timestamp:
04/05/13 05:42:44 (11 years ago)
Author:
obi
Message:

[titan] add jumpto tom play.h

Location:
titan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/mc/mc_videoplayer.h

    r20492 r20848  
    320320                }
    321321               
    322                 if(rcret == getrcconfigint("rc1", NULL))
     322                if(rcret == getrcconfigint("rc0", NULL))
     323                {
     324                        if((status.play == 1) || (status.playspeed != 0))
     325                                playrcjumpto(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
     326                }
     327                else if(rcret == getrcconfigint("rc1", NULL))
    323328                {
    324329                        if((status.play == 1) || (status.playspeed != 0))
  • titan/titan/header.h

    r20768 r20848  
    407407void playrcok(char* file, char* showname, int playinfobarstatus, int playertype, int flag);
    408408int playcheckdirrcret(char* file, int dirrcret);
     409void playrcjumpto(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
    409410
    410411//inetwork.h
  • titan/titan/play.h

    r20542 r20848  
    10461046}
    10471047
     1048void playrcjumpto(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag)
     1049{
     1050        if(status.pause == 0 && status.playspeed == 0 && status.slowspeed == 0)
     1051        {
     1052                int jump = atoi(numinput(_("Jump To (min)"), NULL, "000", 1));
     1053                jump = jump * 60;
     1054                playrcjumpf(file, showname, jump, &playinfobarstatus, &playinfobarcount, playertype, flag);
     1055        }
     1056}
     1057
    10481058void playrcjumpf(char* file, char* showname, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag)
    10491059{
     
    14361446                                if(rcret == getrcconfigint("rc7", NULL))
    14371447                                        playrcjumpr(file, showname, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag);
     1448
     1449                                if(rcret == getrcconfigint("rc0", NULL))
     1450                                        playrcjumpto(file, showname, &playinfobarstatus, &playinfobarcount, playertype, flag);
    14381451                               
    14391452                                if(rcret == getrcconfigint("rcright", NULL))
Note: See TracChangeset for help on using the changeset viewer.