Changeset 32890
- Timestamp:
- 02/06/15 19:25:55 (8 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/avsettings.h
r32263 r32890 110 110 setchoiceboxselection(aspect, ret); 111 111 free(ret); ret = NULL; 112 113 #ifdef MIPSEL 114 aspect->hidden = YES; 115 #endif 112 116 113 117 ret = getcolorformat(2); … … 324 328 free(ret); ret = NULL; 325 329 } 330 #ifndef MIPSEL 326 331 if(aspect->ret != NULL) 327 332 { … … 331 336 free(ret); ret = NULL; 332 337 } 338 #endif 333 339 if(colformat->ret != NULL) 334 340 { -
titan/titan/global.h
r32881 r32890 4046 4046 int setpolicy(char* value) 4047 4047 { 4048 char* policydev, *tmpstr = NULL ;4048 char* policydev, *tmpstr = NULL, *tmpstr2 = NULL; 4049 4049 int ret = 0; 4050 4050 … … 4054 4054 { 4055 4055 debug(10, "set %s to %s", policydev, value); 4056 tmpstr = ostrcat(value, NULL, 0, 0);4057 4056 4058 4057 #ifdef MIPSEL 4059 if(ostrcmp(_("16:9_set_bestfit_to_policy_show_justscale"), tmpstr) == 0) 4060 { 4061 free(tmpstr), tmpstr = NULL; 4058 if(ostrcmp(_("16:9_set_bestfit_to_policy_show_justscale"), _(value)) == 0) 4059 { 4062 4060 tmpstr = ostrcat("bestfit", NULL, 0, 0); 4061 tmpstr2 = ostrcat("16:9_set_bestfit_to_policy_show_justscale", NULL, 0, 0); 4063 4062 setaspect("set_16:9"); 4064 4063 } 4065 else if(ostrcmp(_("16:9_set_letterbox_to_policy_show_panscan"), tmpstr) == 0) 4066 { 4067 free(tmpstr), tmpstr = NULL; 4064 else if(ostrcmp(_("16:9_set_letterbox_to_policy_show_panscan"), _(value)) == 0) 4065 { 4068 4066 tmpstr = ostrcat("letterbox", NULL, 0, 0); 4067 tmpstr2 = ostrcat("16:9_set_letterbox_to_policy_show_panscan", NULL, 0, 0); 4069 4068 setaspect("set_16:9"); 4070 4069 } 4071 else if(ostrcmp(_("16:9_set_panscan_to_policy_show_pillarbox"), tmpstr) == 0) 4072 { 4073 free(tmpstr), tmpstr = NULL; 4070 else if(ostrcmp(_("16:9_set_panscan_to_policy_show_pillarbox"), _(value)) == 0) 4071 { 4074 4072 tmpstr = ostrcat("panscan", NULL, 0, 0); 4073 tmpstr2 = ostrcat("16:9_set_panscan_to_policy_show_pillarbox", NULL, 0, 0); 4075 4074 setaspect("set_16:9"); 4076 4075 } 4077 else if(ostrcmp(_("4:3_set_bestfit_to_policy2_show_justscale"), tmpstr) == 0)4076 else if(ostrcmp(_("4:3_set_bestfit_to_policy2_show_justscale"), _(value)) == 0) 4078 4077 { 4079 4078 policydev = getconfig("policy2dev", NULL); 4080 free(tmpstr), tmpstr = NULL;4081 4079 tmpstr = ostrcat("bestfit", NULL, 0, 0); 4080 tmpstr2 = ostrcat("4:3_set_bestfit_to_policy2_show_justscale", NULL, 0, 0); 4082 4081 setaspect("set_4:3"); 4083 4082 } 4084 else if(ostrcmp(_("4:3_set_letterbox_to_policy2_show_letterbox"), tmpstr) == 0)4083 else if(ostrcmp(_("4:3_set_letterbox_to_policy2_show_letterbox"), _(value)) == 0) 4085 4084 { 4086 4085 policydev = getconfig("policy2dev", NULL); 4087 free(tmpstr), tmpstr = NULL;4088 4086 tmpstr = ostrcat("letterbox", NULL, 0, 0); 4087 tmpstr2 = ostrcat("4:3_set_letterbox_to_policy2_show_letterbox", NULL, 0, 0); 4089 4088 setaspect("set_4:3"); 4090 4089 } 4091 else if(ostrcmp(_("4:3_set_panscan_to_policy2_show_panscan"), tmpstr) == 0)4090 else if(ostrcmp(_("4:3_set_panscan_to_policy2_show_panscan"), _(value)) == 0) 4092 4091 { 4093 4092 policydev = getconfig("policy2dev", NULL); 4094 free(tmpstr), tmpstr = NULL;4095 4093 tmpstr = ostrcat("panscan", NULL, 0, 0); 4094 tmpstr2 = ostrcat("4:3_set_panscan_to_policy2_show_panscan", NULL, 0, 0); 4096 4095 setaspect("set_4:3"); 4097 4096 } 4097 #else 4098 tmpstr = ostrcat(value, NULL, 0, 0); 4098 4099 #endif 4099 4100 debug(10, "set change %s to %s", policydev, tmpstr); 4100 4101 ret = writesys(policydev, tmpstr, 0); 4101 4102 4103 #ifdef MIPSEL 4104 if(ret == 0) addconfig("av_policy", tmpstr2); 4105 #else 4102 4106 if(ret == 0) addconfig("av_policy", value); 4103 4104 free(tmpstr), tmpstr = NULL;4105 return ret; 4106 }4107 4108 return 0;4107 #endif 4108 } 4109 4110 free(tmpstr), tmpstr = NULL; 4111 free(tmpstr2), tmpstr2 = NULL; 4112 return ret; 4109 4113 } 4110 4114
Note: See TracChangeset
for help on using the changeset viewer.