From 4b4c30db5efbb4b4ecb851d1370b215f8a2e8ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Thu, 22 Nov 2007 09:26:57 +0000 Subject: [PATCH] style fixup --- htmlui.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/htmlui.c b/htmlui.c index 89517450..3ae7e9ca 100644 --- a/htmlui.c +++ b/htmlui.c @@ -761,7 +761,7 @@ html_iptv_status(tcp_queue_t *tq, th_transport_t *t, const char *status) { tcp_qprintf(tq, "" + "float:left; font-weight:bold\">" "%s (%s)" "", inet_ntoa(t->tht_iptv_group_addr), @@ -886,7 +886,7 @@ page_status(http_connection_t *hc, const char *remain, void *opaque) box_top(&tq, "box"); tcp_qprintf(&tq, "
"); - tcp_qprintf(&tq, "
IPTV sources

"); + tcp_qprintf(&tq, "
IPTV sources
"); LIST_FOREACH(t, &all_transports, tht_global_link) { if(t->tht_type != TRANSPORT_IPTV) @@ -909,15 +909,27 @@ page_status(http_connection_t *hc, const char *remain, void *opaque) tcp_qprintf(&tq, "
Video4Linux adapters
"); LIST_FOREACH(tva, &v4l_adapters, tva_link) { - tcp_qprintf(&tq, "
%s
", + + tcp_qprintf(&tq, + "" + "%s" + "", tva->tva_path); + if(tva->tva_dispatch_handle == NULL) { - tcp_qprintf(&tq, "Not currently active
"); + snprintf(tmptxt, sizeof(tmptxt), "Idle"); } else { - tcp_qprintf(&tq, "Tuned to %.3f MHz
", - (float)tva->tva_frequency/1000000.0); + snprintf(tmptxt, sizeof(tmptxt), "Tuned to %.3f MHz", + (float)tva->tva_frequency/1000000.0); } + tcp_qprintf(&tq, + "" + "%s" + "
", + tmptxt); } tcp_qprintf(&tq, "
");