]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Don't send 'language' in HTSP component descriptor if it's not set.
authorAndreas Öman <andreas@lonelycoder.com>
Sun, 5 Oct 2008 17:37:13 +0000 (17:37 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Sun, 5 Oct 2008 17:37:13 +0000 (17:37 +0000)
htsp.c

diff --git a/htsp.c b/htsp.c
index 85d1ca39912110860be4f879002440da7ef56892..e95fbf82246c17e7a0c07e7c1631697737c81f4e 100644 (file)
--- 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);
   }