Changeset 39803


Ignore:
Timestamp:
01/26/17 17:05:25 (6 years ago)
Author:
gost
Message:

[titan] fix pip long press

Location:
titan/titan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/infobar.h

    r39797 r39803  
    11171117                                printf("---------> %i\n",rcret);
    11181118                                if(status.recording > 0 && rcret == getrcconfigint("rcpiprec", NULL))
    1119                                         pipchannel = status.recchnode[1];
     1119                                {
     1120                                        for(int i = 0; i < 9; i++)
     1121                                        {
     1122                                                if(status.recchnode[i] != NULL)
     1123                                                {
     1124                                                        pipchannel = status.recchnode[i];
     1125                                                        break;
     1126                                                }
     1127                                        }
     1128                                }
    11201129                                else if(rcret == getrcconfigint("rcpiprec", NULL))
    11211130                                        textbox(_("Message"), _("no record channel found"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0);
  • titan/titan/rc.h

    r39746 r39803  
    306306                        {
    307307                                rcsignal(0);
     308#ifdef DREAMBOX
     309                                if(longpresscount > 0)
     310                                {
     311                                        rcdata.code = longpress;
     312                                        if(longpresscount > 3) rcdata.code = longpress + 3000;
     313                                        ret = rcdata.code;     
     314                                        break;
     315                                }
     316#endif
    308317                                usleep(10000);
    309318                                continue;
     
    317326                                longpresscount++;
    318327                                timeout = 0;
     328#ifdef DREAMBOX
     329                                if(longpresscount == 1)
     330                                        rest = 700;
     331                                else
     332                                        rest = 500;
     333#else
    319334                                rest = 500;
     335#endif                                                         
    320336                                usleep(10000);
    321337                                continue;
  • titan/titan/record.h

    r39797 r39803  
    333333                else
    334334                {
    335                         status.recchnode[status.recording] = NULL;
     335                        for(int i = 0; i < 9; i++)
     336                        {
     337                                if(status.recchnode[i] == node->channel)
     338                                {
     339                                        status.recchnode[i] = NULL;
     340                                        break;
     341                                }
     342                        }                       
    336343                        status.recording--;
    337344                }
     
    14141421        {
    14151422                status.recording++;
    1416                 status.recchnode[status.recording] = chnode;
     1423                for(int i = 0; i < 9; i++)
     1424                {
     1425                        if(status.recchnode[i] == NULL)
     1426                        {
     1427                                status.recchnode[i] = chnode;
     1428                                break;
     1429                        }
     1430                }
    14171431                servicenode->recname = ostrcat(filename, NULL, 0, 0);
    14181432                if(VFD_Recordthread == NULL && getconfigint("vfdisplayrecord", NULL) != 0)
Note: See TracChangeset for help on using the changeset viewer.