Ignore:
Timestamp:
03/13/12 02:23:55 (10 years ago)
Author:
nit
Message:

[titan] fix record in standby if tuner volt is off

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/service.h

    r14384 r14611  
    5858//flag 2: timeshift
    5959//flag 3: same as 0 but don't check chnode
     60//flag 4: same as 0 but new tuning
     61//flag 5: same as 3 but new tuning
    6062int servicestart(struct channel* chnode, char* channellist, char* pin, int flag)
    6163{
     
    7072        int ret = 0, festatus = 1;
    7173        unsigned char *patbuf = NULL;
    72         int checkpmt = 0, pincheck = 0, stopflag = 0, ageprotect = 0;
     74        int checkpmt = 0, pincheck = 0, stopflag = 0, ageprotect = 0, tune = 0;
    7375        struct epg* epgnode = NULL;
    7476
    7577        m_lock(&status.servicemutex, 2);
     78
     79        if(flag == 4 || flag == 5) tune = 1;
     80        if(flag == 4) flag == 0;
    7681
    7782        if(flag == 0 && status.aktservice->type == CHANNEL && status.aktservice->channel != NULL && chnode == status.aktservice->channel)
     
    8085                return 20;
    8186        }
    82         if(flag == 3) flag = 0;
     87        if(flag == 3 || flag == 5) flag = 0;
    8388
    8489        if(chnode == NULL)
     
    146151
    147152                //frontend tune
    148                 if(fenode->felasttransponder != tpnode)
     153                if(fenode->felasttransponder != tpnode || tune == 1)
    149154                {
    150155                        if(fenode->feinfo->type == FE_QPSK)
Note: See TracChangeset for help on using the changeset viewer.