Sort transports according to mux freq to avoid too much switching
This commit is contained in:
parent
5879cd4d14
commit
001c653069
1 changed files with 6 additions and 1 deletions
|
@ -36,6 +36,7 @@
|
||||||
#include "dvb_muxconfig.h"
|
#include "dvb_muxconfig.h"
|
||||||
#include "psi.h"
|
#include "psi.h"
|
||||||
#include "transports.h"
|
#include "transports.h"
|
||||||
|
#include "dispatch.h"
|
||||||
|
|
||||||
#include "ajaxui_mailbox.h"
|
#include "ajaxui_mailbox.h"
|
||||||
|
|
||||||
|
@ -752,7 +753,11 @@ ajax_adaptermuxlist(http_connection_t *hc, http_reply_t *hr,
|
||||||
static int
|
static int
|
||||||
dvbsvccmp(th_transport_t *a, th_transport_t *b)
|
dvbsvccmp(th_transport_t *a, th_transport_t *b)
|
||||||
{
|
{
|
||||||
|
if(a->tht_dvb_mux_instance == b->tht_dvb_mux_instance)
|
||||||
return a->tht_dvb_service_id - b->tht_dvb_service_id;
|
return a->tht_dvb_service_id - b->tht_dvb_service_id;
|
||||||
|
|
||||||
|
return a->tht_dvb_mux_instance->tdmi_fe_params->frequency -
|
||||||
|
b->tht_dvb_mux_instance->tdmi_fe_params->frequency;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue