Changeset 30921


Ignore:
Timestamp:
11/10/14 13:09:04 (9 years ago)
Author:
obi
Message:

[titan] fix pts pause picture on first pause and add pause picture after error msg

Location:
titan/titan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/infobar.h

    r30920 r30921  
    55{
    66        int rcret = 0, ret = 0, infobartimeout = 0, rcwait = 1000, count = 0, first = 1;
    7         int playpic = 0;
    87        struct channel* pipchannel = NULL;
    98        struct skin* playinfobarpic = getscreen("playinfobarpic");
     
    3231        int playinfobarcount = 0, playinfobarstatus = 0;
    3332       
    34         if(checkbox("ATEMIO-NEMESIS") == 1 || checkbox("ATEMIO5200") == 1 || checkbox("ATEMIO6000") == 1 || checkbox("ATEMIO6100") == 1 || checkbox("ATEMIO6200") == 1 || (checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1) && ostrcmp(getconfig("remotecontrol", NULL), "1") != 1)
     33        if(checkbox("ATEMIO-NEMESIS") == 1 || checkbox("ATEMIO5200") == 1 || checkbox("ATEMIO6000") == 1 || checkbox("ATEMIO6100") == 1 || checkbox("ATEMIO6200") == 1 || ((checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1) && ostrcmp(getconfig("remotecontrol", NULL), "1") != 1))
    3534                playstop = 0;
    3635        else
     
    7271                        if(rcret == RCTIMEOUT)
    7372                        {
    74                                 if(playpic == 1) {
     73                                if(status.playpic == 1) {
    7574//it anymore needed
    7675//                                      if (checkbox("ATEMIO-NEMESIS") != 1)
     
    152151                {
    153152                        //timeshift
    154                         if(playpic == 1) {
     153                        if(status.playpic == 1)
     154                        {
    155155                                clearscreen(playinfobarpic);
    156                                 playpic = 0;
     156                                status.playpic = 0;
    157157                        }
    158158                        if(status.timeshift == 1 && (status.playing == 0 || status.slowspeed != 0 || status.playspeed != 0 || status.pause != 0))
     
    162162                                        timeshiftpause(0);
    163163                                        timeshiftinfobar(&playinfobarstatus, &playinfobarcount);
     164                                        if(status.playpic == 0)
     165                                        {
     166                                                drawscreen(playinfobarpic, 0, 0);
     167                                                status.playpic = 1;
     168                                        }
    164169                                }
    165170                                else
     
    169174                        {
    170175                                if(status.timeshift == 1)
    171                                         playpic = 2;
     176                                        status.playpic = 2;
    172177                                else
    173                                         playpic = 0;
     178                                        status.playpic = 0;
     179
    174180                                timeshiftpause(0);
    175181                                timeshiftinfobar(&playinfobarstatus, &playinfobarcount);
    176                                 if(playpic == 0) {
     182                                if(status.playpic == 0)
     183                                {
    177184                                        drawscreen(playinfobarpic, 0, 0);
    178                                         playpic = 1;
    179                                 }
    180                         }
    181                        
     185                                        status.playpic = 1;
     186                                }
     187                        }
     188
    182189                        continue;
    183190                }
     
    186193                        if(rcret == getrcconfigint("rcstop", NULL))
    187194                        {
    188                                 if(playpic == 1) {
     195                                if(status.playpic == 1)
     196                                {
    189197                                        clearscreen(playinfobarpic);
    190                                         playpic = 0;
     198                                        status.playpic = 0;
    191199                                }               
    192200                                timeshiftstop(0);
     
    195203                        if(rcret == getrcconfigint("rcplay", NULL))
    196204                        {
    197                                 if(playpic == 1) {
     205                                if(status.playpic == 1)
     206                                {
    198207                                        clearscreen(playinfobarpic);
    199                                         playpic = 0;
     208                                        status.playpic = 0;
    200209                                }               
    201210                                if(playstop == 1 && status.timeshifttype == 1)
     
    313322                                {
    314323                                        playrcjumpf(status.playfile, NULL, 300, &playinfobarstatus, &playinfobarcount, 1, 4);
     324#ifdef MIPSEL
     325// workaround fixes image flicker when jumping over the border also
     326                                        playrcjumpr(status.playfile, NULL, 10, &playinfobarstatus, &playinfobarcount, 1, 4);
     327#endif
    315328                                        continue;
    316329                                }
     
    323336                                {
    324337                                        playrcjumpf(status.playfile, NULL, 60, &playinfobarstatus, &playinfobarcount, 1, 4);
     338#ifdef MIPSEL
     339// workaround fixes image flicker when jumping over the border also
     340                                        playrcjumpr(status.playfile, NULL, 10, &playinfobarstatus, &playinfobarcount, 1, 4);
     341#endif
    325342                                        continue;
    326343                                }
     
    699716                        drawscreen(skin, 0, 0);
    700717                        subtitlepause(0);
     718                        resettvpic();
    701719                        continue;
    702720                }
     
    725743                        status.infobaraktiv = 1;
    726744                        subtitlepause(0);
     745                        resettvpic();
    727746                        continue;
    728747                }
  • titan/titan/struct.h

    r30772 r30921  
    13031303        int slowspeed;
    13041304        int prefillbuffer;
     1305        int playpic;
    13051306#ifdef EPLAYER4
    13061307        int bufferpercent;
  • titan/titan/timeshift.h

    r24911 r30921  
    148148
    149149        struct service* snode = getservice(RECORDTIMESHIFT, 0);
    150        
     150        struct skin* playinfobarpic = getscreen("playinfobarpic");
     151
    151152        if((status.timeshifttype == 0 && status.playing == 0) || (status.timeshifttype == 1 && status.playing == 0 && status.timeshiftpos > 0))
    152153        {
     
    154155                {
    155156                        textbox(_("Message"), _("Timeshift file to short\nplease wait a little and try again"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 5, 0);
     157                        if(status.playpic == 0)
     158                        {       
     159                                drawscreen(playinfobarpic, 0, 0);
     160                                status.playpic = 1;
     161                        }
    156162                        return;
    157163                }
     
    161167                {
    162168                        textbox(_("Message"), _("Can't start timeshift play !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
     169                        if(status.playpic == 0)
     170                        {       
     171                                drawscreen(playinfobarpic, 0, 0);
     172                                status.playpic = 1;
     173                        }
    163174                        return;
    164175                }
Note: See TracChangeset for help on using the changeset viewer.