linuxdvb,satip,hdhomerun: make uuid persistent per tuner

This commit is contained in:
Jaroslav Kysela 2014-11-18 10:34:23 +01:00
parent a2d7e1797c
commit c119b442dd
3 changed files with 3 additions and 1 deletions

View file

@ -1419,6 +1419,7 @@ linuxdvb_frontend_save ( linuxdvb_frontend_t *lfe, htsmsg_t *fe )
/* Save frontend */
mpegts_input_save((mpegts_input_t*)lfe, m);
htsmsg_add_str(m, "type", dvb_type2str(lfe->lfe_type));
htsmsg_add_str(m, "uuid", idnode_uuid_as_str(&lfe->ti_id));
if (lfe->lfe_satconf) {
htsmsg_t *s = htsmsg_create_map();
linuxdvb_satconf_save(lfe->lfe_satconf, s);

View file

@ -1549,6 +1549,7 @@ satip_frontend_save ( satip_frontend_t *lfe, htsmsg_t *fe )
/* Save frontend */
mpegts_input_save((mpegts_input_t*)lfe, m);
htsmsg_add_str(m, "type", dvb_type2str(lfe->sf_type));
htsmsg_add_str(m, "uuid", idnode_uuid_as_str(&lfe->ti_id));
if (lfe->ti_id.in_class == &satip_frontend_dvbs_class) {
satip_satconf_save(lfe, m);
htsmsg_delete_field(m, "networks");

View file

@ -1,4 +1,3 @@
/*
* Tvheadend - HDHomeRun DVB frontend
*
@ -514,6 +513,7 @@ tvhdhomerun_frontend_save ( tvhdhomerun_frontend_t *hfe, htsmsg_t *fe )
/* Save frontend */
mpegts_input_save((mpegts_input_t*)hfe, m);
htsmsg_add_str(m, "type", dvb_type2str(hfe->hf_type));
htsmsg_add_str(m, "uuid", idnode_uuid_as_str(&hfe->ti_id));
/* Add to list */
snprintf(id, sizeof(id), "%s #%d", dvb_type2str(hfe->hf_type), hfe->hf_tunerNumber);