Changeset 31663


Ignore:
Timestamp:
12/09/14 22:32:56 (8 years ago)
Author:
obi
Message:

fix

Location:
titan/titan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r31661 r31663  
    66996699char* getmoviedev()
    67006700{
    6701         char* tmpstr = NULL;
    6702         char* buf = NULL;
     6701        char* tmpstr = NULL, *buf = NULL;
     6702
    67036703        tmpstr = readfiletomem("/tmp/.moviedev", 1);
    67046704        printf("tmpstr: %s\n", tmpstr);
     
    67186718        dev = getmoviedev();
    67196719        if(dev == NULL)
    6720         {
    67216720                cmd = ostrcat("ls -al ", getconfig("rec_path", NULL), 0, 0);
    6722                 cmd = ostrcat(cmd, " >/dev/null", 1, 0);
    6723         }
    67246721        else
    67256722                cmd = ostrcat("sdparm -C START /dev/", dev, 0, 0);
    67266723
     6724//      cmd = ostrcat(cmd, " >/dev/null", 1, 0);
    67276725        printf("cmd: %s\n", cmd);
    67286726        system(cmd);
  • titan/titan/record.h

    r31662 r31663  
    889889        struct transponder* tpnode = NULL;
    890890        int input = DMX_IN_FRONTEND;
     891
     892        wakeup_record_device();
    891893
    892894        if(chnode == NULL && filefd < 0)
     
    14391441        struct stimerthread *recthumbfirstthread = NULL;
    14401442
    1441         struct skin* load = getscreen("loading");
    1442         drawscreen(load, 0, 0);
    1443         wakeup_record_device();
    1444         clearscreen(load);
    1445        
    14461443        while(servicenode != NULL)
    14471444        {
     
    15131510                if(ostrcmp(mbox->name, _("add recording (stop after current event)")) == 0)
    15141511                {
    1515                         wakeup_record_device();
    15161512                        epgnode = getepgbytime(status.aktservice->channel, time(NULL) + 60);
    15171513#ifndef SIMULATE
     
    15271523                if(ostrcmp(mbox->name, _("add recording (indefinitely)")) == 0)
    15281524                {
    1529                         wakeup_record_device();
    15301525                        ret = recordstart(status.aktservice->channel, -1, 0, RECDIRECT, 0, NULL);
    15311526                        newstart = 1;
     
    15371532                        if(ret1 > 0)
    15381533                        {
    1539                                 wakeup_record_device();
    15401534                                ret = recordstart(status.aktservice->channel, -1, 0, RECDIRECT, time(NULL) + (ret1 * 60), NULL);
    15411535                                newstart = 1;
  • titan/titan/rectimer.h

    r31658 r31663  
    539539                        else
    540540                        {
    541 printf("########################################\n");
    542 printf("sdparm -C START /dev/sda\n");
    543 system("sdparm -C START /dev/sda");
    544 printf("########################################\n");
    545 
    546                                 char* moviedev = getmoviedev();
    547                                 if(moviedev != NULL)
    548                                         hddwakeup(moviedev);
    549                                 free(moviedev), moviedev = NULL;
    550                                  
    551                                 //workaround for standby recording
    552                                 char* cmd = NULL;
    553                                 cmd = ostrcat("ls -al ", getconfig("rec_path", NULL), 0, 0);
    554 //                              cmd = ostrcat(cmd, " >/dev/null", 1, 0);
    555                                 printf("cmd: %s\n", cmd);
    556                                 system(cmd);
    557                                 free(cmd), cmd = NULL;
    558 printf("########################################\n");
    559 /*
    560                                 sleep(5);
    561                                 cmd = NULL;
    562                                 cmd = ostrcat("ls -al ", getconfig("rec_path", NULL), 0, 0);
    563 //                              cmd = ostrcat(cmd, " >/dev/null", 1, 0);
    564                                 printf("cmd: %s\n", cmd);
    565                                 system(cmd);
    566                                 free(cmd), cmd = NULL;
    567 
    568 
    569 printf("########################################\n");
    570 
    571 printf("fdisk -l\n");
    572 system("fdisk -l");
    573 printf("########################################\n");
    574 
    575 printf("ls -al /media/\n");
    576 system("ls -al /media/");
    577 printf("########################################\n");
    578 
    579 printf("ls -al /media/hdd/\n");
    580 system("ls -al /media/hdd/");
    581 printf("########################################\n");
    582 
    583 printf("ls -al /media/hdd/movie/\n");
    584 system("ls -al /media/hdd/movie/");
    585 printf("########################################\n");
    586 
    587 printf("fdisk -l\n");
    588 system("fdisk -l");
    589 printf("########################################\n");
    590 
    591 printf("ls -al /media/\n");
    592 system("ls -al /media/");
    593 printf("########################################\n");
    594 
    595 printf("ls -al /media/hdd/\n");
    596 system("ls -al /media/hdd/");
    597 printf("########################################\n");
    598 
    599 printf("ls -al /media/hdd/movie/\n");
    600 system("ls -al /media/hdd/movie/");
    601 printf("########################################\n");
    602 
    603 printf("ls -al /media/autofs/\n");
    604 system("ls -al /media/autofs/");
    605 printf("########################################\n");
    606 
    607 printf("ls -al /media/autofs/sda1/\n");
    608 system("ls -al /media/autofs/sda1/");
    609 printf("########################################\n");
    610 */
    611                                 // workaround end       
    612541                                ret = recordstart(chnode, -1, 0, RECTIMER, node->end, node);
    613542                                if(ret == 14) ret = 0;
Note: See TracChangeset for help on using the changeset viewer.