Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP Client: do not save config in the load procedure
  • Loading branch information
perexg committed Apr 23, 2015
1 parent 8cb63d9 commit 706beee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/input/mpegts/satip/satip.c
Expand Up @@ -494,9 +494,11 @@ satip_device_create( satip_device_info_t *info )
tvhlog(LOG_ERR, "satip", "%s: bad tuner count [%s]",
satip_device_nicename(sd, buf2, sizeof(buf2)), argv[i]);
} else {
sd->sd_nosave = 1;
for (j = 0; j < m; j++)
if (satip_frontend_create(feconf, sd, type, v2, fenum))
fenum++;
sd->sd_nosave = 0;
}
}

Expand Down Expand Up @@ -544,6 +546,9 @@ satip_device_save( satip_device_t *sd )
satip_frontend_t *lfe;
htsmsg_t *m, *l;

if (sd->sd_nosave)
return;

m = htsmsg_create_map();
idnode_save(&sd->th_id, m);

Expand Down
1 change: 1 addition & 0 deletions src/input/mpegts/satip/satip_private.h
Expand Up @@ -62,6 +62,7 @@ struct satip_device
tvh_hardware_t;

gtimer_t sd_destroy_timer;
int sd_nosave;

/*
* Adapter info
Expand Down

0 comments on commit 706beee

Please sign in to comment.