From fc068dd782fcba4911b5d555d0a392514896d7c8 Mon Sep 17 00:00:00 2001 From: oscar-b Date: Mon, 30 Dec 2013 10:17:36 +0100 Subject: [PATCH] Use ONID as CRID authority as last resort. --- src/epggrab/module/eit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/epggrab/module/eit.c b/src/epggrab/module/eit.c index 98299782..72495f28 100644 --- a/src/epggrab/module/eit.c +++ b/src/epggrab/module/eit.c @@ -369,11 +369,13 @@ static int _eit_desc_crid } else if ( *buf != '/' ) { snprintf(crid, clen, "crid://%s", buf); } else { - char *defauth = svc->s_dvb_cridauth; + const char *defauth = svc->s_dvb_cridauth; if (!defauth) defauth = svc->s_dvb_mux->mm_crid_authority; if (defauth) snprintf(crid, clen, "crid://%s%s", defauth, buf); + else + snprintf(crid, clen, "crid://%d%s", svc->s_dvb_mux->mm_onid, buf); } }