From: Andreas Ă–man Date: Sun, 5 Oct 2008 17:37:13 +0000 (+0000) Subject: Don't send 'language' in HTSP component descriptor if it's not set. X-Git-Tag: 2.12~784 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e412b78bc7de24e215aa3a1f7c8cea62c2bbae3;p=thirdparty%2Ftvheadend.git Don't send 'language' in HTSP component descriptor if it's not set. --- diff --git a/htsp.c b/htsp.c index 85d1ca399..e95fbf822 100644 --- a/htsp.c +++ b/htsp.c @@ -944,7 +944,8 @@ htsp_subscription_start(htsp_connection_t *htsp, th_subscription_t *s, c = htsmsg_create(); htsmsg_add_u32(c, "index", sc->sc_index); htsmsg_add_str(c, "type", streaming_component_type2txt(sc->sc_type)); - htsmsg_add_str(c, "language", sc->sc_lang); + if(sc->sc_lang[0]) + htsmsg_add_str(c, "language", sc->sc_lang); htsmsg_add_msg(streams, NULL, c); }