Changeset 32890


Ignore:
Timestamp:
02/06/15 19:25:55 (9 years ago)
Author:
obi
Message:

mipsel hid aspect on avsettings not needed anymore and write av_policy with src value

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/avsettings.h

    r32263 r32890  
    110110        setchoiceboxselection(aspect, ret);
    111111        free(ret); ret = NULL;
     112
     113#ifdef MIPSEL
     114        aspect->hidden = YES;
     115#endif
    112116
    113117        ret = getcolorformat(2);
     
    324328                                free(ret); ret = NULL;
    325329                        }
     330#ifndef MIPSEL
    326331                        if(aspect->ret != NULL)
    327332                        {
     
    331336                                free(ret); ret = NULL;
    332337                        }
     338#endif
    333339                        if(colformat->ret != NULL)
    334340                        {
  • titan/titan/global.h

    r32881 r32890  
    40464046int setpolicy(char* value)
    40474047{
    4048         char* policydev, *tmpstr = NULL;
     4048        char* policydev, *tmpstr = NULL, *tmpstr2 = NULL;
    40494049        int ret = 0;
    40504050
     
    40544054        {
    40554055                debug(10, "set %s to %s", policydev, value);
    4056                 tmpstr = ostrcat(value, NULL, 0, 0);
    40574056
    40584057#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                {
    40624060                        tmpstr = ostrcat("bestfit", NULL, 0, 0);
     4061                        tmpstr2 = ostrcat("16:9_set_bestfit_to_policy_show_justscale", NULL, 0, 0);
    40634062                        setaspect("set_16:9");
    40644063                }
    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                {
    40684066                        tmpstr = ostrcat("letterbox", NULL, 0, 0);
     4067                        tmpstr2 = ostrcat("16:9_set_letterbox_to_policy_show_panscan", NULL, 0, 0);
    40694068                        setaspect("set_16:9");
    40704069                }
    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                {
    40744072                        tmpstr = ostrcat("panscan", NULL, 0, 0);
     4073                        tmpstr2 = ostrcat("16:9_set_panscan_to_policy_show_pillarbox", NULL, 0, 0);
    40754074                        setaspect("set_16:9");
    40764075                }                       
    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)
    40784077                {
    40794078                        policydev = getconfig("policy2dev", NULL);
    4080                         free(tmpstr), tmpstr = NULL;
    40814079                        tmpstr = ostrcat("bestfit", NULL, 0, 0);
     4080                        tmpstr2 = ostrcat("4:3_set_bestfit_to_policy2_show_justscale", NULL, 0, 0);
    40824081                        setaspect("set_4:3");
    40834082                }
    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)
    40854084                {
    40864085                        policydev = getconfig("policy2dev", NULL);
    4087                         free(tmpstr), tmpstr = NULL;
    40884086                        tmpstr = ostrcat("letterbox", NULL, 0, 0);
     4087                        tmpstr2 = ostrcat("4:3_set_letterbox_to_policy2_show_letterbox", NULL, 0, 0);
    40894088                        setaspect("set_4:3");
    40904089                }
    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)
    40924091                {
    40934092                        policydev = getconfig("policy2dev", NULL);
    4094                         free(tmpstr), tmpstr = NULL;
    40954093                        tmpstr = ostrcat("panscan", NULL, 0, 0);
     4094                        tmpstr2 = ostrcat("4:3_set_panscan_to_policy2_show_panscan", NULL, 0, 0);
    40964095                        setaspect("set_4:3");
    40974096                }
     4097#else
     4098                tmpstr = ostrcat(value, NULL, 0, 0);
    40984099#endif
    40994100                debug(10, "set change %s to %s", policydev, tmpstr);
    41004101                ret = writesys(policydev, tmpstr, 0);
    41014102
     4103#ifdef MIPSEL
     4104                if(ret == 0) addconfig("av_policy", tmpstr2);
     4105#else
    41024106                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;
    41094113}
    41104114
Note: See TracChangeset for help on using the changeset viewer.