Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: handle lfe_ready better - send status all time
  • Loading branch information
perexg committed Aug 17, 2014
1 parent a5bca86 commit 91f3b2c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_frontend.c
Expand Up @@ -486,7 +486,7 @@ linuxdvb_frontend_monitor ( void *aux )
}

/* Stop timer */
if (!mmi || !lfe->lfe_ready) return;
if (!mmi) return;

/* re-arm */
gtimer_arm(&lfe->lfe_monitor_timer, linuxdvb_frontend_monitor, lfe, 1);
Expand All @@ -506,6 +506,12 @@ linuxdvb_frontend_monitor ( void *aux )
else
status = SIGNAL_NONE;

if (!lfe->lfe_ready) {
/* send the status message to the higher layers _always_ */
status = SIGNAL_NONE;
goto status;
}

/* Set default period */
if (fe_status != lfe->lfe_status) {
tvhdebug("linuxdvb", "%s - status %7s (%s%s%s%s%s%s)", buf,
Expand Down Expand Up @@ -761,6 +767,7 @@ linuxdvb_frontend_monitor ( void *aux )
}
}

status:
/* Send message */
sigstat.status_text = signal2str(status);
sigstat.snr = mmi->mmi_stats.snr;
Expand Down

1 comment on commit 91f3b2c

@ksooo
Copy link
Contributor

@ksooo ksooo commented on 91f3b2c Aug 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@perexg I have a dual tuner dvb-s/s2 card. Sometimes (sorry no more detils atm) I cannot tune to certain channels, getting errors like:

014-08-17 15:50:12.025 subscription: No transponder available for subscription "127.0.0.1 [ XBMC Media Center ]" to channel "KiKA HD"

If this happens I have three(!) active subscriptions (according to webui Status=>Subscriptions) - two "scan" or "epggrab" in idle state plus one subscription to the desired channel in bad state.

Is it okay to have more subscriptions than tuners?

Please sign in to comment.