Changeset 19974 for titan/plugins/mc


Ignore:
Timestamp:
02/07/13 00:07:27 (11 years ago)
Author:
obi
Message:

[titan] fix build

Location:
titan/plugins/mc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/mc/mc_audioplayer.h

    r19054 r19974  
    326326                {
    327327                        if((status.play == 1) || (status.playspeed != 0))
    328                                 playrcjumpr(filename, 10, &playinfobarstatus, &playinfobarcount, playertype, flag);
     328                                playrcjumpr(filename, NULL, 10, &playinfobarstatus, &playinfobarcount, playertype, flag);
    329329                }
    330330                else if(rcret == getrcconfigint("rc4", NULL))
    331331                {
    332332                        if((status.play == 1) || (status.playspeed != 0))
    333                                 playrcjumpr(filename, 30, &playinfobarstatus, &playinfobarcount, playertype, flag);
     333                                playrcjumpr(filename, NULL, 30, &playinfobarstatus, &playinfobarcount, playertype, flag);
    334334                }
    335335                else if(rcret == getrcconfigint("rc7", NULL))
    336336                {
    337337                        if((status.play == 1) || (status.playspeed != 0))
    338                                 playrcjumpr(filename, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);
     338                                playrcjumpr(filename, NULL, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);
    339339                }
    340340                else if(rcret == getrcconfigint("rc3", NULL))
    341341                {
    342342                        if((status.play == 1) || (status.playspeed != 0))
    343                                 playrcjumpf(filename, 10, &playinfobarstatus, &playinfobarcount, playertype, flag);
     343                                playrcjumpf(filename, NULL, 10, &playinfobarstatus, &playinfobarcount, playertype, flag);
    344344                }
    345345                else if(rcret == getrcconfigint("rc6", NULL))
    346346                {
    347347                        if((status.play == 1) || (status.playspeed != 0))
    348                                 playrcjumpf(filename, 30, &playinfobarstatus, &playinfobarcount, playertype, flag);
     348                                playrcjumpf(filename, NULL, 30, &playinfobarstatus, &playinfobarcount, playertype, flag);
    349349                }
    350350                else if(rcret == getrcconfigint("rc9", NULL))
    351351                {
    352352                        if((status.play == 1) || (status.playspeed != 0))
    353                                 playrcjumpf(filename, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);
     353                                playrcjumpf(filename, NULL, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);
    354354                }
    355355                else if(rcret == getrcconfigint("rcff", NULL))
    356356                {
    357357                        if((status.play == 1) || (status.playspeed != 0))
    358                                 playrcff(filename, &playinfobarstatus, &playinfobarcount, playertype, 2);
     358                                playrcff(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, 2);
    359359                }       
    360360                else if(rcret == getrcconfigint("rcfr", NULL))
    361361                {
    362362                        if((status.play == 1) || (status.playspeed != 0))
    363                                 playrcfr(filename, &playinfobarstatus, &playinfobarcount, playertype, 2);
     363                                playrcfr(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, 2);
    364364                }
    365365                else if(rcret == getrcconfigint("rcplay", NULL))
    366366                {
    367367                        if((status.play == 1) || (status.playspeed != 0))
    368                                 playrcplay(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     368                                playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    369369                        //showplaylist(1);
    370370                }
     
    378378                        }
    379379                        if((status.play == 1) || (status.pause == 1))
    380                                 playrcpause(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     380                                playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    381381                }
    382382                else if((rcret == getrcconfigint("rcchdown", NULL)) || (rcret == getrcconfigint("rcnext", NULL)))
     
    587587
    588588                                playerret = playerstart(filename);
    589                                 playwritevfd(filename);
     589                                playwritevfd(filename, NULL);
    590590
    591591                                #ifndef SIMULATE
     
    684684                                eof = 0;
    685685                                playerret = playerstart(filename);
    686                                 playwritevfd(filename);
     686                                playwritevfd(filename, NULL);
    687687
    688688                                #ifndef SIMULATE
  • titan/plugins/mc/mc_global.h

    r19053 r19974  
    757757                                                                playerret = playerstart(*filename);
    758758                                       
    759                                                         playwritevfd(*filename);
     759                                                        playwritevfd(*filename, NULL);
    760760                               
    761761       
     
    10021002                                        playerret = playerstart(*filename);
    10031003
    1004                                 playwritevfd(*filename);
     1004                                playwritevfd(*filename, NULL);
    10051005                               
    1006                                 //playwritevfd(*filename);
     1006                                //playwritevfd(*filename, NULL);
    10071007                                #ifndef SIMULATE
    10081008                                        if(playerret != 0)
     
    10161016                                status.play = 1;
    10171017                                if(flag == 1)
    1018                                         screenplayinfobar(*filename, 0, 0, 0);
     1018                                        screenplayinfobar(*filename, NULL, 0, 0, 0);
    10191019                        }                               
    10201020
  • titan/plugins/mc/mc_header.h

    r19893 r19974  
    33
    44void picplayer(struct skin* picscreen, struct skin* picture, struct skin* picname, char* filename, int flag);
    5 struct clist* addconfigscreen(char *key, struct skin *node);
    65
    76//void screenmc_audioplayer();
     
    98
    109//void mc_videoplayer_infobar(struct skin* apskin, struct skin* infobar, struct skin* spos, struct skin* slen, struct skin* sreverse, struct skin* sprogress, char* filename);
    11 void screenplayinfobar(char* file, int mode, int playertype, int flag);
    12 void playrcblue(char* file, int playinfobarstatus, int playertype, int flag);
    13 void playrcyellow(char* file, int playinfobarstatus, int playertype, int flag);
    14 void playrcred(char* file, int playinfobarstatus, int playertype, int flag);
    15 void playrcgreen(char* file, int playinfobarstatus, int playertype, int flag);
    16 void playrctext(char* file, int playinfobarstatus, int playertype, int flag);
    17 void playrcok(char* file, int playinfobarstatus, int playertype, int flag);
    18 void playrcplay(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
    19 
    20 //global.h
    21 void setosdtransparent(int value);
    22 
    23 // mc_audioplayer.h
    24 //void playereof(struct skin* apskin, struct skin* filelist, struct skin* listbox, struct skin* filelistpath, struct skin* b2, int* skip, int* eof, int* playlist, int flag);
    25 //void playerrandom(struct skin* apskin, struct skin* filelist, struct skin* listbox, struct skin* b3, int* playlist, int flag);
    26 //void showplaylist(struct skin* apskin, struct skin* filelistpath, struct skin* filelist, struct skin* listbox1, struct skin* b2, int mode, int* playlist, int* eof);
    27 //void mc_audioplayer_infobar(struct skin* apskin, struct skin* infobar, struct skin* spos, struct skin* slen, struct skin* sreverse, struct skin* sprogress, char* filename);
    28 
    29 // playlist.h
    30 void getplaylistmaxold(struct skin* playlist, int* maxdirs, int* maxfiles);
    31 struct skin* getplaylistrandomold(struct skin* playlist, int maxdirs, int maxfiles);
    32 
    33 // menu.h
    34 struct skin* menu(struct skin* menu);
    35 
    36 // filelist.h
    37 void getfilelistmax(struct skin* filelist, int* maxdirs, int* maxfiles);
    38 //void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview, char* selection);
    39 void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview, char* selection);
    40 struct skin* getfilelistrandom(struct skin* filelist, int maxdirs, int maxfiles);
    41 
    42 // play.h
    43 void playrcjumpr(char* file, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
    44 void playrcjumpf(char* file, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
    45 void playrcpause(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
    46 void playrcff(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
    47 void playrcfr(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
    48 void playwritevfd(char* file);
    49 
    50 // rc.h
    51 int writerc(int keycode);
     10void screenplayinfobar(char* file, char* showname, int mode, int playertype, int flag);
     11void playrcblue(char* file, char* showname, int playinfobarstatus, int playertype, int flag);
     12void playrcyellow(char* file, char* showname, int playinfobarstatus, int playertype, int flag);
     13void playrcred(char* file, char* showname, int playinfobarstatus, int playertype, int flag);
     14void playrcgreen(char* file, char* showname, int playinfobarstatus, int playertype, int flag);
     15void playrctext(char* file, char* showname, int playinfobarstatus, int playertype, int flag);
     16void playrcok(char* file, char* showname, int playinfobarstatus, int playertype, int flag);
     17void playrcplay(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
    5218
    5319// mc_settings.h
  • titan/plugins/mc/mc_pictureplayer.h

    r19952 r19974  
    8888        {
    8989                playerret = playerstart(track);
    90                 playwritevfd(track);
     90                playwritevfd(track, NULL);
    9191
    9292                #ifndef SIMULATE
     
    117117                {
    118118                        if((status.play == 1) || (status.playspeed != 0))
    119                                 playrcplay(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     119                                playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    120120                }
    121121                else if(rcret == getrcconfigint("rcpause", NULL))
    122122                {
    123123                        if((status.play == 1) || (status.pause == 1))
    124                                 playrcpause(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     124                                playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    125125                }
    126126                else if((rcret == getrcconfigint("rcchdown", NULL)) || (rcret == getrcconfigint("rcprev", NULL)))
     
    156156                {
    157157                        if(status.play == 1)
    158                                 playrcred(filename, playinfobarstatus, playertype, flag);
     158                                playrcred(filename, NULL, playinfobarstatus, playertype, flag);
    159159                        else
    160160                        {
     
    176176                {
    177177                        if(status.play == 1)
    178                                 playrcgreen(filename, playinfobarstatus, playertype, flag);
     178                                playrcgreen(filename, NULL, playinfobarstatus, playertype, flag);
    179179                        else
    180180                        {
     
    187187                {               
    188188                        if(status.play == 1)
    189                                 playrctext(filename, playinfobarstatus, playertype, flag);     
     189                                playrctext(filename, NULL, playinfobarstatus, playertype, flag);       
    190190                }
    191191                else if(rcret == getrcconfigint("rcmenu", NULL))
     
    225225                                {
    226226                                        playerret = playerstart(track);
    227                                         playwritevfd(filename);
     227                                        playwritevfd(filename, NULL);
    228228
    229229                                        #ifndef SIMULATE
     
    347347                                {
    348348                                        playerret = playerstart(filename);
    349                                         playwritevfd(filename);
     349                                        playwritevfd(filename, NULL);
    350350
    351351                                        #ifndef SIMULATE
     
    370370                                }
    371371
    372                                 screenplayinfobar(filename, 0, playertype, 0);                 
     372                                screenplayinfobar(filename, NULL, 0, playertype, 0);                   
    373373                                status.play = 1;
    374374                        }
     
    444444                        {
    445445                                playerret = playerstart(track);
    446                                 playwritevfd(filename);
     446                                playwritevfd(filename, NULL);
    447447
    448448                                #ifndef SIMULATE
  • titan/plugins/mc/mc_videoplayer.h

    r19054 r19974  
    109109                        if(playinfobarstatus > 0)
    110110                        {
    111                                 screenplayinfobar(filename, 0, playertype, 0);
     111                                screenplayinfobar(filename, NULL, 0, playertype, 0);
    112112                        }
    113113                        if(playinfobarstatus == 1 && playinfobarcount >= getconfigint("infobartimeout", NULL))
    114114                        {
    115115                                playinfobarstatus = 0;
    116                                 screenplayinfobar(NULL, 1, playertype, 0);
     116                                screenplayinfobar(NULL, NULL, 1, playertype, 0);
    117117                        }
    118118                }
     
    323323                {
    324324                        if((status.play == 1) || (status.playspeed != 0))
    325                                 playrcjumpr(filename, skip13, &playinfobarstatus, &playinfobarcount, playertype, flag);
     325                                playrcjumpr(filename, NULL, skip13, &playinfobarstatus, &playinfobarcount, playertype, flag);
    326326                }
    327327                else if(rcret == getrcconfigint("rc4", NULL))
    328328                {
    329329                        if((status.play == 1) || (status.playspeed != 0))
    330                                 playrcjumpr(filename, skip46, &playinfobarstatus, &playinfobarcount, playertype, flag);
     330                                playrcjumpr(filename, NULL, skip46, &playinfobarstatus, &playinfobarcount, playertype, flag);
    331331                }
    332332                else if(rcret == getrcconfigint("rc7", NULL))
    333333                {
    334334                        if((status.play == 1) || (status.playspeed != 0))
    335                                 playrcjumpr(filename, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag);
     335                                playrcjumpr(filename, NULL, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag);
    336336                }
    337337                else if(rcret == getrcconfigint("rc3", NULL))
    338338                {
    339339                        if((status.play == 1) || (status.playspeed != 0))
    340                                 playrcjumpf(filename, skip13, &playinfobarstatus, &playinfobarcount, playertype, flag);
     340                                playrcjumpf(filename, NULL, skip13, &playinfobarstatus, &playinfobarcount, playertype, flag);
    341341                }
    342342                else if(rcret == getrcconfigint("rc6", NULL))
    343343                {
    344344                        if((status.play == 1) || (status.playspeed != 0))
    345                                 playrcjumpf(filename, skip46, &playinfobarstatus, &playinfobarcount, playertype, flag);
     345                                playrcjumpf(filename, NULL, skip46, &playinfobarstatus, &playinfobarcount, playertype, flag);
    346346                }
    347347                else if(rcret == getrcconfigint("rc9", NULL))
    348348                {
    349349                        if((status.play == 1) || (status.playspeed != 0))
    350                                 playrcjumpf(filename, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag);
     350                                playrcjumpf(filename, NULL, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag);
    351351                }
    352352                else if(rcret == getrcconfigint("rcleft", NULL))
    353353                {
    354354                        if((status.play == 1) || (status.playspeed != 0))
    355                                 playrcjumpr(filename, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);
     355                                playrcjumpr(filename, NULL, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);
    356356                }
    357357                else if(rcret == getrcconfigint("rcright", NULL))
    358358                {
    359359                        if((status.play == 1) || (status.playspeed != 0))
    360                                 playrcjumpf(filename, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);
     360                                playrcjumpf(filename, NULL, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);
    361361                }
    362362                else if(rcret == getrcconfigint("rcdown", NULL))
    363363                {
    364364                        if((status.play == 1) || (status.playspeed != 0))
    365                                 playrcjumpr(filename, 600, &playinfobarstatus, &playinfobarcount, playertype, flag);
     365                                playrcjumpr(filename, NULL, 600, &playinfobarstatus, &playinfobarcount, playertype, flag);
    366366                }
    367367                else if(rcret == getrcconfigint("rcup", NULL))
    368368                {
    369369                        if((status.play == 1) || (status.playspeed != 0))
    370                                 playrcjumpf(filename, 600, &playinfobarstatus, &playinfobarcount, playertype, flag);
     370                                playrcjumpf(filename, NULL, 600, &playinfobarstatus, &playinfobarcount, playertype, flag);
    371371                }
    372372
     
    374374                {
    375375                        if((status.play == 1) || (status.playspeed != 0))
    376                                 playrcff(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     376                                playrcff(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    377377                }       
    378378                else if(rcret == getrcconfigint("rcfr", NULL))
    379379                {
    380380                        if((status.play == 1) || (status.playspeed != 0))
    381                                 playrcfr(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     381                                playrcfr(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    382382                }
    383383                else if(rcret == getrcconfigint("rcplay", NULL))
    384384                {
    385385//                      if((status.play == 1) || (status.playspeed != 0))
    386 //                              playrcplay(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     386//                              playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    387387                        if((status.play == 1) || (status.pause == 1))
    388                                 playrcpause(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     388                                playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    389389                }
    390390                else if(rcret == getrcconfigint("rcpause", NULL))
    391391                {
    392392                        if((status.play == 1) || (status.pause == 1))
    393                                 playrcpause(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     393                                playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    394394                }
    395395                else if(rcret == getrcconfigint("rcnext", NULL))
     
    406406                {
    407407                        if(status.play == 1)
    408                                 playrcblue(filename, playinfobarstatus, playertype, flag);
     408                                playrcblue(filename, NULL, playinfobarstatus, playertype, flag);
    409409                        else
    410410                        {
     
    426426                {
    427427                        if(status.play == 1)
    428                                 playrcyellow(filename, playinfobarstatus, playertype, flag);                                           
     428                                playrcyellow(filename, NULL, playinfobarstatus, playertype, flag);                                             
    429429                        else
    430430                                playerrandom(apskin, filelist, listbox, b3, playlist, flag);
     
    433433                {
    434434                        if(status.play == 1)
    435                                 playrcred(filename, playinfobarstatus, playertype, flag);
     435                                playrcred(filename, NULL, playinfobarstatus, playertype, flag);
    436436                        else
    437437                        {
     
    457457                {
    458458                        if(status.play == 1)
    459                                 playrcgreen(filename, playinfobarstatus, playertype, flag);
     459                                playrcgreen(filename, NULL, playinfobarstatus, playertype, flag);
    460460                        else
    461461                        {
     
    468468                {               
    469469                        if(status.play == 1)
    470                                 playrctext(filename, playinfobarstatus, playertype, flag);     
     470                                playrctext(filename, NULL, playinfobarstatus, playertype, flag);       
    471471                }
    472472                else if(rcret == getrcconfigint("rcmenu", NULL))
     
    523523                                        filename = createpath(filelistpath->text, filelist->select->name);
    524524                                        debug(133, "filename: %s", filename);                           
    525                                         playrcred(filename, playinfobarstatus, playertype, flag);
     525                                        playrcred(filename, NULL, playinfobarstatus, playertype, flag);
    526526                                }
    527527                        }
    528528                        else
    529                                 playrcplay(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);
     529                                playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
    530530
    531531                        if(status.play == 0 && status.pause == 0)
     
    666666                        if((status.play == 1) || (status.playspeed != 0))
    667667                        {
    668                                 playrcok(filename, playinfobarstatus, playertype, flag);
     668                                playrcok(filename, NULL, playinfobarstatus, playertype, flag);
    669669                                continue;
    670670                        }
     
    719719                                        playerret = playerstart(filename);
    720720
    721                                 playwritevfd(filename);
     721                                playwritevfd(filename, NULL);
    722722
    723723                                #ifndef SIMULATE
     
    740740                                #endif
    741741
    742                                 screenplayinfobar(filename, 0, playertype, 0);                 
     742                                screenplayinfobar(filename, NULL, 0, playertype, 0);                   
    743743                                status.play = 1;
    744744                               
     
    856856                                        playerret = playerstart(filename);
    857857
    858                                 playwritevfd(filename);
     858                                playwritevfd(filename, NULL);
    859859
    860860                                #ifndef SIMULATE
     
    886886                                                                        {
    887887                                                                                fscanf(fbseek,"%s",skip1);
    888                                                                                 playrcjumpf(filename, atoll(skip1), &playinfobarstatus, &playinfobarcount, playertype, flag);           
     888                                                                                playrcjumpf(filename, NULL, atoll(skip1), &playinfobarstatus, &playinfobarcount, playertype, flag);             
    889889                                                                        }
    890890                                                                        free(skip1), skip1 = NULL;
     
    900900
    901901                                clearscreen(loadmediadb);
    902                                 screenplayinfobar(filename, 0, playertype, 0);
     902                                screenplayinfobar(filename, NULL, 0, playertype, 0);
    903903                                status.play = 1;
    904904
Note: See TracChangeset for help on using the changeset viewer.