Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts: warn when the mux changed parameters
  • Loading branch information
perexg committed Apr 15, 2015
1 parent c8ae8a9 commit 04e5a9d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/input/mpegts/mpegts_network_dvb.c
Expand Up @@ -495,11 +495,9 @@ dvb_network_create_mux
if (xr) lm->lm_tuning.x = dmc->x; \
xr; })
#endif
#if ENABLE_TRACE
dvb_mux_conf_t tuning_old;
char buf[128];
tuning_old = lm->lm_tuning;
#endif
/* Always save the orbital position */
if (dmc->dmc_fe_type == DVB_TYPE_S) {
if (lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos == INT_MAX ||
Expand Down Expand Up @@ -546,16 +544,14 @@ dvb_network_create_mux
}
#undef COMPARE
#undef COMPAREN
#if ENABLE_TRACE
if (save) {
dvb_mux_conf_str(&tuning_old, buf, sizeof(buf));
tvhtrace("mpegts", "mux %p changed from %s in network %s",
tvhwarn("mpegts", "mux %p changed from %s in network %s",
mm, buf, mm->mm_network->mn_network_name);
dvb_mux_conf_str(&lm->lm_tuning, buf, sizeof(buf));
tvhtrace("mpegts", "mux %p changed to %s in network %s",
tvhwarn("mpegts", "mux %p changed to %s in network %s",
mm, buf, mm->mm_network->mn_network_name);
}
#endif
}
save:
if (mm && save) {
Expand Down

0 comments on commit 04e5a9d

Please sign in to comment.