static int mm_cmp ( mpegts_mux_t *a, mpegts_mux_t *b ) { int r = b->mm_scan_weight - a->mm_scan_weight; if (r == 0) return mpegts_mux_compare(a, b); return r; }
static int om_mux_cmp ( epggrab_ota_mux_t *a, epggrab_ota_mux_t *b ) { mpegts_mux_t *a1 = mpegts_mux_find0(&a->om_mux_uuid); mpegts_mux_t *b1 = mpegts_mux_find0(&b->om_mux_uuid); if (a1 == NULL || b1 == NULL) { if (a1 == NULL && b1 == NULL) return 0; return a1 == NULL ? 1 : -1; } return mpegts_mux_compare(a1, b1); }