Changeset 20419


Ignore:
Timestamp:
03/09/13 11:04:20 (11 years ago)
Author:
nit
Message:

[titan] stop pts on titan end

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/timeshift.h

    r20414 r20419  
    4242//flag 1: stop from servicestop
    4343//flag 2: error in record thread
     44//flag 3: stop from titan end
    4445void timeshiftstop(int flag)
    4546{
     
    7778        }
    7879
    79         if(flag == 0)
     80        if(flag == 0 || flag == 3)
    8081        {
    8182                while(status.timeshift > 0)
     
    8586                }
    8687        }
    87 
    88         if(flag == 0 || flag == 3)
     88        if(flag == 0 || flag == 2)
    8989                servicecheckret(servicestart(status.aktservice->channel, NULL, NULL, 3), 0);
    9090       
  • titan/titan/titan.c

    r20407 r20419  
    282282        pthread_t writethread = '\0';
    283283
     284        //stop permanent timeshift
     285        if(status.timeshifttype == 1)
     286                timeshiftstop(3);
     287
    284288        //check if record running
    285289        if((flag == 1 || flag == 2 || flag == 3 || flag == 4 || flag == 5) && (status.recording > 0 || getrectimerbytimediff(300) != NULL))
Note: See TracChangeset for help on using the changeset viewer.