From 919b3eed416e4cfbb0b035d376a3ef83e70d61a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Tue, 17 Jun 2008 09:51:09 +0000 Subject: [PATCH] file_input needs tht_sourcename() callback or it will crash --- file_input.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/file_input.c b/file_input.c index 98befac9..722deca7 100644 --- a/file_input.c +++ b/file_input.c @@ -68,6 +68,14 @@ static void fi_deliver(void *aux, int64_t now); static void file_input_get_pkt(th_transport_t *t, file_input_t *fi, int64_t now); + + +static const char *file_input_source_name(th_transport_t *t) +{ + return "file input"; +} + + /* * */ @@ -156,6 +164,7 @@ file_input_init(void) t->tht_provider = strdup("HTS Tvheadend"); t->tht_identifier = strdup(ch->ch_name); t->tht_file_input = fi; + t->tht_sourcename = file_input_source_name; transport_map_channel(t, ch); } }