Changeset 19974 for titan/plugins/mc
- Timestamp:
- 02/07/13 00:07:27 (11 years ago)
- Location:
- titan/plugins/mc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/mc/mc_audioplayer.h
r19054 r19974 326 326 { 327 327 if((status.play == 1) || (status.playspeed != 0)) 328 playrcjumpr(filename, 10, &playinfobarstatus, &playinfobarcount, playertype, flag);328 playrcjumpr(filename, NULL, 10, &playinfobarstatus, &playinfobarcount, playertype, flag); 329 329 } 330 330 else if(rcret == getrcconfigint("rc4", NULL)) 331 331 { 332 332 if((status.play == 1) || (status.playspeed != 0)) 333 playrcjumpr(filename, 30, &playinfobarstatus, &playinfobarcount, playertype, flag);333 playrcjumpr(filename, NULL, 30, &playinfobarstatus, &playinfobarcount, playertype, flag); 334 334 } 335 335 else if(rcret == getrcconfigint("rc7", NULL)) 336 336 { 337 337 if((status.play == 1) || (status.playspeed != 0)) 338 playrcjumpr(filename, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);338 playrcjumpr(filename, NULL, 60, &playinfobarstatus, &playinfobarcount, playertype, flag); 339 339 } 340 340 else if(rcret == getrcconfigint("rc3", NULL)) 341 341 { 342 342 if((status.play == 1) || (status.playspeed != 0)) 343 playrcjumpf(filename, 10, &playinfobarstatus, &playinfobarcount, playertype, flag);343 playrcjumpf(filename, NULL, 10, &playinfobarstatus, &playinfobarcount, playertype, flag); 344 344 } 345 345 else if(rcret == getrcconfigint("rc6", NULL)) 346 346 { 347 347 if((status.play == 1) || (status.playspeed != 0)) 348 playrcjumpf(filename, 30, &playinfobarstatus, &playinfobarcount, playertype, flag);348 playrcjumpf(filename, NULL, 30, &playinfobarstatus, &playinfobarcount, playertype, flag); 349 349 } 350 350 else if(rcret == getrcconfigint("rc9", NULL)) 351 351 { 352 352 if((status.play == 1) || (status.playspeed != 0)) 353 playrcjumpf(filename, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);353 playrcjumpf(filename, NULL, 60, &playinfobarstatus, &playinfobarcount, playertype, flag); 354 354 } 355 355 else if(rcret == getrcconfigint("rcff", NULL)) 356 356 { 357 357 if((status.play == 1) || (status.playspeed != 0)) 358 playrcff(filename, &playinfobarstatus, &playinfobarcount, playertype, 2);358 playrcff(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, 2); 359 359 } 360 360 else if(rcret == getrcconfigint("rcfr", NULL)) 361 361 { 362 362 if((status.play == 1) || (status.playspeed != 0)) 363 playrcfr(filename, &playinfobarstatus, &playinfobarcount, playertype, 2);363 playrcfr(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, 2); 364 364 } 365 365 else if(rcret == getrcconfigint("rcplay", NULL)) 366 366 { 367 367 if((status.play == 1) || (status.playspeed != 0)) 368 playrcplay(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);368 playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 369 369 //showplaylist(1); 370 370 } … … 378 378 } 379 379 if((status.play == 1) || (status.pause == 1)) 380 playrcpause(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);380 playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 381 381 } 382 382 else if((rcret == getrcconfigint("rcchdown", NULL)) || (rcret == getrcconfigint("rcnext", NULL))) … … 587 587 588 588 playerret = playerstart(filename); 589 playwritevfd(filename );589 playwritevfd(filename, NULL); 590 590 591 591 #ifndef SIMULATE … … 684 684 eof = 0; 685 685 playerret = playerstart(filename); 686 playwritevfd(filename );686 playwritevfd(filename, NULL); 687 687 688 688 #ifndef SIMULATE -
titan/plugins/mc/mc_global.h
r19053 r19974 757 757 playerret = playerstart(*filename); 758 758 759 playwritevfd(*filename );759 playwritevfd(*filename, NULL); 760 760 761 761 … … 1002 1002 playerret = playerstart(*filename); 1003 1003 1004 playwritevfd(*filename );1004 playwritevfd(*filename, NULL); 1005 1005 1006 //playwritevfd(*filename );1006 //playwritevfd(*filename, NULL); 1007 1007 #ifndef SIMULATE 1008 1008 if(playerret != 0) … … 1016 1016 status.play = 1; 1017 1017 if(flag == 1) 1018 screenplayinfobar(*filename, 0, 0, 0);1018 screenplayinfobar(*filename, NULL, 0, 0, 0); 1019 1019 } 1020 1020 -
titan/plugins/mc/mc_header.h
r19893 r19974 3 3 4 4 void picplayer(struct skin* picscreen, struct skin* picture, struct skin* picname, char* filename, int flag); 5 struct clist* addconfigscreen(char *key, struct skin *node);6 5 7 6 //void screenmc_audioplayer(); … … 9 8 10 9 //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); 10 void screenplayinfobar(char* file, char* showname, int mode, int playertype, int flag); 11 void playrcblue(char* file, char* showname, int playinfobarstatus, int playertype, int flag); 12 void playrcyellow(char* file, char* showname, int playinfobarstatus, int playertype, int flag); 13 void playrcred(char* file, char* showname, int playinfobarstatus, int playertype, int flag); 14 void playrcgreen(char* file, char* showname, int playinfobarstatus, int playertype, int flag); 15 void playrctext(char* file, char* showname, int playinfobarstatus, int playertype, int flag); 16 void playrcok(char* file, char* showname, int playinfobarstatus, int playertype, int flag); 17 void playrcplay(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); 52 18 53 19 // mc_settings.h -
titan/plugins/mc/mc_pictureplayer.h
r19952 r19974 88 88 { 89 89 playerret = playerstart(track); 90 playwritevfd(track );90 playwritevfd(track, NULL); 91 91 92 92 #ifndef SIMULATE … … 117 117 { 118 118 if((status.play == 1) || (status.playspeed != 0)) 119 playrcplay(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);119 playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 120 120 } 121 121 else if(rcret == getrcconfigint("rcpause", NULL)) 122 122 { 123 123 if((status.play == 1) || (status.pause == 1)) 124 playrcpause(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);124 playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 125 125 } 126 126 else if((rcret == getrcconfigint("rcchdown", NULL)) || (rcret == getrcconfigint("rcprev", NULL))) … … 156 156 { 157 157 if(status.play == 1) 158 playrcred(filename, playinfobarstatus, playertype, flag);158 playrcred(filename, NULL, playinfobarstatus, playertype, flag); 159 159 else 160 160 { … … 176 176 { 177 177 if(status.play == 1) 178 playrcgreen(filename, playinfobarstatus, playertype, flag);178 playrcgreen(filename, NULL, playinfobarstatus, playertype, flag); 179 179 else 180 180 { … … 187 187 { 188 188 if(status.play == 1) 189 playrctext(filename, playinfobarstatus, playertype, flag);189 playrctext(filename, NULL, playinfobarstatus, playertype, flag); 190 190 } 191 191 else if(rcret == getrcconfigint("rcmenu", NULL)) … … 225 225 { 226 226 playerret = playerstart(track); 227 playwritevfd(filename );227 playwritevfd(filename, NULL); 228 228 229 229 #ifndef SIMULATE … … 347 347 { 348 348 playerret = playerstart(filename); 349 playwritevfd(filename );349 playwritevfd(filename, NULL); 350 350 351 351 #ifndef SIMULATE … … 370 370 } 371 371 372 screenplayinfobar(filename, 0, playertype, 0);372 screenplayinfobar(filename, NULL, 0, playertype, 0); 373 373 status.play = 1; 374 374 } … … 444 444 { 445 445 playerret = playerstart(track); 446 playwritevfd(filename );446 playwritevfd(filename, NULL); 447 447 448 448 #ifndef SIMULATE -
titan/plugins/mc/mc_videoplayer.h
r19054 r19974 109 109 if(playinfobarstatus > 0) 110 110 { 111 screenplayinfobar(filename, 0, playertype, 0);111 screenplayinfobar(filename, NULL, 0, playertype, 0); 112 112 } 113 113 if(playinfobarstatus == 1 && playinfobarcount >= getconfigint("infobartimeout", NULL)) 114 114 { 115 115 playinfobarstatus = 0; 116 screenplayinfobar(NULL, 1, playertype, 0);116 screenplayinfobar(NULL, NULL, 1, playertype, 0); 117 117 } 118 118 } … … 323 323 { 324 324 if((status.play == 1) || (status.playspeed != 0)) 325 playrcjumpr(filename, skip13, &playinfobarstatus, &playinfobarcount, playertype, flag);325 playrcjumpr(filename, NULL, skip13, &playinfobarstatus, &playinfobarcount, playertype, flag); 326 326 } 327 327 else if(rcret == getrcconfigint("rc4", NULL)) 328 328 { 329 329 if((status.play == 1) || (status.playspeed != 0)) 330 playrcjumpr(filename, skip46, &playinfobarstatus, &playinfobarcount, playertype, flag);330 playrcjumpr(filename, NULL, skip46, &playinfobarstatus, &playinfobarcount, playertype, flag); 331 331 } 332 332 else if(rcret == getrcconfigint("rc7", NULL)) 333 333 { 334 334 if((status.play == 1) || (status.playspeed != 0)) 335 playrcjumpr(filename, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag);335 playrcjumpr(filename, NULL, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag); 336 336 } 337 337 else if(rcret == getrcconfigint("rc3", NULL)) 338 338 { 339 339 if((status.play == 1) || (status.playspeed != 0)) 340 playrcjumpf(filename, skip13, &playinfobarstatus, &playinfobarcount, playertype, flag);340 playrcjumpf(filename, NULL, skip13, &playinfobarstatus, &playinfobarcount, playertype, flag); 341 341 } 342 342 else if(rcret == getrcconfigint("rc6", NULL)) 343 343 { 344 344 if((status.play == 1) || (status.playspeed != 0)) 345 playrcjumpf(filename, skip46, &playinfobarstatus, &playinfobarcount, playertype, flag);345 playrcjumpf(filename, NULL, skip46, &playinfobarstatus, &playinfobarcount, playertype, flag); 346 346 } 347 347 else if(rcret == getrcconfigint("rc9", NULL)) 348 348 { 349 349 if((status.play == 1) || (status.playspeed != 0)) 350 playrcjumpf(filename, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag);350 playrcjumpf(filename, NULL, skip79, &playinfobarstatus, &playinfobarcount, playertype, flag); 351 351 } 352 352 else if(rcret == getrcconfigint("rcleft", NULL)) 353 353 { 354 354 if((status.play == 1) || (status.playspeed != 0)) 355 playrcjumpr(filename, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);355 playrcjumpr(filename, NULL, 60, &playinfobarstatus, &playinfobarcount, playertype, flag); 356 356 } 357 357 else if(rcret == getrcconfigint("rcright", NULL)) 358 358 { 359 359 if((status.play == 1) || (status.playspeed != 0)) 360 playrcjumpf(filename, 60, &playinfobarstatus, &playinfobarcount, playertype, flag);360 playrcjumpf(filename, NULL, 60, &playinfobarstatus, &playinfobarcount, playertype, flag); 361 361 } 362 362 else if(rcret == getrcconfigint("rcdown", NULL)) 363 363 { 364 364 if((status.play == 1) || (status.playspeed != 0)) 365 playrcjumpr(filename, 600, &playinfobarstatus, &playinfobarcount, playertype, flag);365 playrcjumpr(filename, NULL, 600, &playinfobarstatus, &playinfobarcount, playertype, flag); 366 366 } 367 367 else if(rcret == getrcconfigint("rcup", NULL)) 368 368 { 369 369 if((status.play == 1) || (status.playspeed != 0)) 370 playrcjumpf(filename, 600, &playinfobarstatus, &playinfobarcount, playertype, flag);370 playrcjumpf(filename, NULL, 600, &playinfobarstatus, &playinfobarcount, playertype, flag); 371 371 } 372 372 … … 374 374 { 375 375 if((status.play == 1) || (status.playspeed != 0)) 376 playrcff(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);376 playrcff(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 377 377 } 378 378 else if(rcret == getrcconfigint("rcfr", NULL)) 379 379 { 380 380 if((status.play == 1) || (status.playspeed != 0)) 381 playrcfr(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);381 playrcfr(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 382 382 } 383 383 else if(rcret == getrcconfigint("rcplay", NULL)) 384 384 { 385 385 // if((status.play == 1) || (status.playspeed != 0)) 386 // playrcplay(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);386 // playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 387 387 if((status.play == 1) || (status.pause == 1)) 388 playrcpause(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);388 playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 389 389 } 390 390 else if(rcret == getrcconfigint("rcpause", NULL)) 391 391 { 392 392 if((status.play == 1) || (status.pause == 1)) 393 playrcpause(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);393 playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 394 394 } 395 395 else if(rcret == getrcconfigint("rcnext", NULL)) … … 406 406 { 407 407 if(status.play == 1) 408 playrcblue(filename, playinfobarstatus, playertype, flag);408 playrcblue(filename, NULL, playinfobarstatus, playertype, flag); 409 409 else 410 410 { … … 426 426 { 427 427 if(status.play == 1) 428 playrcyellow(filename, playinfobarstatus, playertype, flag);428 playrcyellow(filename, NULL, playinfobarstatus, playertype, flag); 429 429 else 430 430 playerrandom(apskin, filelist, listbox, b3, playlist, flag); … … 433 433 { 434 434 if(status.play == 1) 435 playrcred(filename, playinfobarstatus, playertype, flag);435 playrcred(filename, NULL, playinfobarstatus, playertype, flag); 436 436 else 437 437 { … … 457 457 { 458 458 if(status.play == 1) 459 playrcgreen(filename, playinfobarstatus, playertype, flag);459 playrcgreen(filename, NULL, playinfobarstatus, playertype, flag); 460 460 else 461 461 { … … 468 468 { 469 469 if(status.play == 1) 470 playrctext(filename, playinfobarstatus, playertype, flag);470 playrctext(filename, NULL, playinfobarstatus, playertype, flag); 471 471 } 472 472 else if(rcret == getrcconfigint("rcmenu", NULL)) … … 523 523 filename = createpath(filelistpath->text, filelist->select->name); 524 524 debug(133, "filename: %s", filename); 525 playrcred(filename, playinfobarstatus, playertype, flag);525 playrcred(filename, NULL, playinfobarstatus, playertype, flag); 526 526 } 527 527 } 528 528 else 529 playrcplay(filename, &playinfobarstatus, &playinfobarcount, playertype, flag);529 playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag); 530 530 531 531 if(status.play == 0 && status.pause == 0) … … 666 666 if((status.play == 1) || (status.playspeed != 0)) 667 667 { 668 playrcok(filename, playinfobarstatus, playertype, flag);668 playrcok(filename, NULL, playinfobarstatus, playertype, flag); 669 669 continue; 670 670 } … … 719 719 playerret = playerstart(filename); 720 720 721 playwritevfd(filename );721 playwritevfd(filename, NULL); 722 722 723 723 #ifndef SIMULATE … … 740 740 #endif 741 741 742 screenplayinfobar(filename, 0, playertype, 0);742 screenplayinfobar(filename, NULL, 0, playertype, 0); 743 743 status.play = 1; 744 744 … … 856 856 playerret = playerstart(filename); 857 857 858 playwritevfd(filename );858 playwritevfd(filename, NULL); 859 859 860 860 #ifndef SIMULATE … … 886 886 { 887 887 fscanf(fbseek,"%s",skip1); 888 playrcjumpf(filename, atoll(skip1), &playinfobarstatus, &playinfobarcount, playertype, flag);888 playrcjumpf(filename, NULL, atoll(skip1), &playinfobarstatus, &playinfobarcount, playertype, flag); 889 889 } 890 890 free(skip1), skip1 = NULL; … … 900 900 901 901 clearscreen(loadmediadb); 902 screenplayinfobar(filename, 0, playertype, 0);902 screenplayinfobar(filename, NULL, 0, playertype, 0); 903 903 status.play = 1; 904 904
Note: See TracChangeset
for help on using the changeset viewer.