Changeset 45001 for titan/titan/infobar.h
- Timestamp:
- 12/13/20 20:54:27 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/infobar.h
r44717 r45001 802 802 continue; 803 803 } 804 if(rcret == getrcconfigint("rchbbtv", NULL) && status.aktservice->channel != NULL && status.aktservice->channel->hbbtvurl != NULL) 805 { 804 if(rcret == getrcconfigint("rchbbtv", NULL) && status.aktservice->channel != NULL && status.aktservice->channel->hbbtvurl != NULL && file_exist("/usr/bin/browser")) 805 { 806 #ifdef OEBUILD 807 //oebuild hbbtv start 808 subtitlepause(1); 809 status.infobar = 0; 810 status.sec = 0; 811 clearscreen(infobar); 812 #ifdef OEBUILD 813 saveframebuffer(); 814 #endif 815 drawscreen(skin, 0, 0); 816 status.tuxtxt = 1; 817 818 char* res = NULL; 819 res = string_newline(command("cat /sys/class/graphics/fb0/virtual_size | tr ',' ' '")); 820 if(res == NULL) 821 { 822 printf("set default res\n"); 823 res = ostrcat("1280 720", NULL, 0, 0); 824 } 825 tmpstr = ostrcat("run.sh restart ", res, 0, 1); 826 tmpstr = ostrcat(tmpstr, " ", 1, 0); 827 tmpstr = ostrcat(tmpstr, status.aktservice->channel->hbbtvurl, 1, 0); 828 tmpstr = ostrcat(tmpstr, " &", 1, 0); 829 #ifdef MIPSEL 830 disablemanualblit(); 831 int tmprcret = -1; 832 833 delrc(getrcconfigint("rcvolup", NULL), NULL, NULL); 834 delrc(getrcconfigint("rcvoldown", NULL), NULL, NULL); 835 836 printf("cmd1: %s\n", tmpstr); 837 system(tmpstr); 838 free(tmpstr), tmpstr = NULL; 839 840 while(1) 841 { 842 rcret = waitrc(infobar, 0, 0); 843 if(rcret == getrcconfigint("rc0", NULL)) tmprcret = 0x00; 844 else if(rcret == getrcconfigint("rc1", NULL)) tmprcret = 0x01; 845 else if(rcret == getrcconfigint("rc2", NULL)) tmprcret = 0x02; 846 else if(rcret == getrcconfigint("rc3", NULL)) tmprcret = 0x03; 847 else if(rcret == getrcconfigint("rc4", NULL)) tmprcret = 0x04; 848 else if(rcret == getrcconfigint("rc5", NULL)) tmprcret = 0x05; 849 else if(rcret == getrcconfigint("rc6", NULL)) tmprcret = 0x06; 850 else if(rcret == getrcconfigint("rc7", NULL)) tmprcret = 0x07; 851 else if(rcret == getrcconfigint("rc8", NULL)) tmprcret = 0x08; 852 else if(rcret == getrcconfigint("rc9", NULL)) tmprcret = 0x09; 853 else if(rcret == getrcconfigint("rcright", NULL)) tmprcret = 0x0A; 854 else if(rcret == getrcconfigint("rcleft", NULL)) tmprcret = 0x0B; 855 else if(rcret == getrcconfigint("rcup", NULL)) tmprcret = 0x0C; 856 else if(rcret == getrcconfigint("rcdown", NULL)) tmprcret = 0x0D; 857 else if(rcret == getrcconfigint("rcok", NULL)) tmprcret = 0x0E; 858 else if(rcret == getrcconfigint("rcmute", NULL)) tmprcret = 0x0F; 859 else if(rcret == getrcconfigint("rcpower", NULL)) tmprcret = 0x10; 860 else if(rcret == getrcconfigint("rcgreen", NULL)) tmprcret = 0x11; 861 else if(rcret == getrcconfigint("rcyellow", NULL)) tmprcret = 0x12; 862 else if(rcret == getrcconfigint("rcred", NULL)) tmprcret = 0x13; 863 else if(rcret == getrcconfigint("rcblue", NULL)) tmprcret = 0x14; 864 else if(rcret == getrcconfigint("rcchup", NULL)) tmprcret = 0x15; 865 else if(rcret == getrcconfigint("rcchdown", NULL)) tmprcret = 0x16; 866 else if(rcret == getrcconfigint("rchelp", NULL)) tmprcret = 0x17; 867 //else if(rcret == getrcconfigint("rcdbox", NULL)) tmprcret = 0x18; 868 else if(rcret == getrcconfigint("rctext", NULL)) tmprcret = 0x1F; 869 else if(rcret == getrcconfigint("rcexit", NULL)) tmprcret = 0x1F; 870 871 sendtuxtxt(tmprcret); 872 873 if(rcret == getrcconfigint("rcexit", NULL)) break; 874 if(rcret == getrcconfigint("rctext", NULL)) break; 875 } 876 877 addrc(getrcconfigint("rcvolup", NULL), screenvolumeup, NULL, NULL); 878 addrc(getrcconfigint("rcvoldown", NULL), screenvolumedown, NULL, NULL); 879 880 if(status.fdrctxt != -1) 881 { 882 close(status.fdrctxt); 883 status.fdrctxt = -1; 884 } 885 system("killall -9 run.sh browser"); 886 #ifndef OEBUILD 887 system("resetfb.sh"); 888 #endif 889 enablemanualblit(); 890 #else 891 printf("cmd2: %s\n", tmpstr); 892 system(tmpstr); 893 free(tmpstr), tmpstr = NULL; 894 #endif 895 896 #ifdef MIPSEL 897 898 if(status.aktservice != NULL) 899 resetvmpeg(status.aktservice->videodev); 900 #endif 901 #ifdef OEBUILD 902 restoreframebuffer(); 903 #endif 904 status.tuxtxt = 0; 905 free(tmpstr); tmpstr = NULL; tmpnr = NULL; 906 drawscreen(skin, 0, 0); 907 subtitlepause(0); 908 //oebuild hbbtv end 909 #else 806 910 subtitlepause(1); 807 911 status.infobar = 0; … … 819 923 drawscreen(skin, 0, 0); 820 924 subtitlepause(0); 925 #endif 821 926 continue; 822 927 }
Note: See TracChangeset
for help on using the changeset viewer.