Changeset 30893


Ignore:
Timestamp:
11/08/14 20:28:15 (9 years ago)
Author:
obi
Message:

fix #81

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/infobar.h

    r30133 r30893  
    220220                        if(status.timeshifttype == 1 && status.playing == 0)
    221221                        {
    222                                 if(rcret == getrcconfigint("rcff", NULL) || (getconfig("timeshiftnumkeys", NULL) == 0 && (rcret == getrcconfigint("rc3", NULL) || rcret == getrcconfigint("rc6", NULL) || rcret == getrcconfigint("rc9", NULL))))
     222                                if(rcret == getrcconfigint("rcff", NULL) || (getconfig("timeshiftnumkeys", NULL) == 0 && (rcret == getrcconfigint("rc3", NULL) || rcret == getrcconfigint("rc6", NULL) || rcret == getrcconfigint("rc9", NULL) || rcret == getrcconfigint("rcright", NULL) || rcret == getrcconfigint("rcup", NULL) || rcret == getrcconfigint("rc2", NULL))))
    223223                                {
    224224                                        struct service* snode = getservice(RECORDTIMESHIFT, 0);
     
    241241                                if(getconfig("timeshiftnumkeys", NULL) == 0)
    242242                                {
     243                                        if(rcret == getrcconfigint("rcleft", NULL))
     244                                        {
     245                                                timeshiftposplay(&playinfobarstatus, &playinfobarcount);
     246                                                if(status.playing == 1)
     247                                                        playrcjumpr(status.playfile, NULL, 60, &playinfobarstatus, &playinfobarcount, 1, 4);
     248                                                continue;
     249                                        }
     250                                        if(rcret == getrcconfigint("rcdown", NULL))
     251                                        {
     252                                                timeshiftposplay(&playinfobarstatus, &playinfobarcount);
     253                                                if(status.playing == 1)
     254                                                        playrcjumpr(status.playfile, NULL, 300, &playinfobarstatus, &playinfobarcount, 1, 4);
     255                                                continue;
     256                                        }
    243257                                        if(rcret == getrcconfigint("rc1", NULL))
    244258                                        {
     
    276290                                        continue;
    277291                                }
     292                                if(rcret == getrcconfigint("rcleft", NULL))
     293                                {
     294                                        playrcjumpf(status.playfile, NULL, 60, &playinfobarstatus, &playinfobarcount, 1, 4);
     295                                        continue;
     296                                }
    278297                                if(rcret == getrcconfigint("rc3", NULL))
    279298                                {
     
    290309                                        playrcjumpf(status.playfile, NULL, getconfigint("skip79", NULL), &playinfobarstatus, &playinfobarcount, 1, 4);
    291310                                        continue;
     311                                }
     312                                if(rcret == getrcconfigint("rcdown", NULL))
     313                                {
     314                                        playrcjumpr(status.playfile, NULL, 300, &playinfobarstatus, &playinfobarcount, 1, 4);
     315                                        continue;
     316                                }
     317                                if(rcret == getrcconfigint("rcup", NULL))
     318                                {
     319                                        playrcjumpf(status.playfile, NULL, 60, &playinfobarstatus, &playinfobarcount, 1, 4);
     320                                        continue;
     321                                }
     322                                if(rcret == getrcconfigint("rcleft", NULL))
     323                                {
     324                                        playrcjumpr(status.playfile, NULL, 60, &playinfobarstatus, &playinfobarcount, 1, 4);
     325                                        continue;
     326                                }
     327                                if(rcret == getrcconfigint("rc1", NULL))
     328                                {
     329                                        playrcjumpr(status.playfile, NULL, getconfigint("skip13", NULL), &playinfobarstatus, &playinfobarcount, 1, 4);
     330                                        continue;
     331                                }
     332                                if(rcret == getrcconfigint("rc4", NULL))
     333                                {
     334                                        playrcjumpr(status.playfile, NULL, getconfigint("skip46", NULL), &playinfobarstatus, &playinfobarcount, 1, 4);
     335                                        continue;
     336                                }
     337                                if(rcret == getrcconfigint("rc7", NULL))
     338                                {
     339                                        playrcjumpr(status.playfile, NULL, getconfigint("skip79", NULL), &playinfobarstatus, &playinfobarcount, 1, 4);
     340                                        continue;
     341                                }
     342                                if(rcret == getrcconfigint("rc2", NULL))
     343                                {
     344                                        playrcjumpto(status.playfile, NULL, &playinfobarstatus, &playinfobarcount, 1, 4);
     345                                        continue;
     346                                }
     347                                if(rcret == getrcconfigint("rc0", NULL))
     348                                {
     349                                        setmarker();
     350                                        continue;
     351                                }
     352                                if(rcret == getrcconfigint("rc5", NULL))
     353                                {
     354                                        screenmarker(status.playfile, NULL, &playinfobarstatus, &playinfobarcount, 1, 4);
     355                                        continue;
    292356                                }       
    293                                 if(rcret == getrcconfigint("rc1", NULL))
    294                                 {
    295                                         playrcjumpr(status.playfile, NULL, getconfigint("skip13", NULL), &playinfobarstatus, &playinfobarcount, 1, 4);
    296                                         continue;
    297                                 }
    298                                 if(rcret == getrcconfigint("rc4", NULL))
    299                                 {
    300                                         playrcjumpr(status.playfile, NULL, getconfigint("skip46", NULL), &playinfobarstatus, &playinfobarcount, 1, 4);
    301                                         continue;
    302                                 }
    303                                 if(rcret == getrcconfigint("rc7", NULL))
    304                                 {
    305                                         playrcjumpr(status.playfile, NULL, getconfigint("skip79", NULL), &playinfobarstatus, &playinfobarcount, 1, 4);
    306                                         continue;
    307                                 }
     357
    308358                                if(status.timeshifttype == 0 && rcret == getrcconfigint("rcinfo", NULL))
    309359                                {
Note: See TracChangeset for help on using the changeset viewer.