Index: apps/recorder/radio.c =================================================================== --- apps/recorder/radio.c (Revision 20834) +++ apps/recorder/radio.c (Arbeitskopie) @@ -1157,15 +1157,30 @@ { if(settings_parseline(buf, &freq, &name)) { - f = atoi(freq); - if(f) /* For backwards compatibility */ + if(strncmp("region", freq, 6) == 0) { - struct fmstation * const fms = &presets[num_presets]; - fms->frequency = f; - strncpy(fms->name, name, MAX_FMPRESET_LEN); - fms->name[MAX_FMPRESET_LEN] = '\0'; - num_presets++; + /* We always check for 'region' but actually set it only + * if the player allows it. Thus the same file can be + * used on any player without changes. + */ +#ifdef HAVE_RADIO_REGION + f = atoi(name); + global_settings.fm_region = f; + tuner_set(RADIO_REGION, f); +#endif } + else + { + f = atoi(freq); + if(f) /* For backwards compatibility */ + { + struct fmstation * const fms = &presets[num_presets]; + fms->frequency = f; + strncpy(fms->name, name, MAX_FMPRESET_LEN); + fms->name[MAX_FMPRESET_LEN] = '\0'; + num_presets++; + } + } } } else