From e94c70e9c152b1c2c102cb9d1dedaa898c94d992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 15 Aug 2009 08:43:45 +0000 Subject: [PATCH] For the dummy subscription (-j arg) print some info to stderr about what's going on --- src/subscriptions.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/subscriptions.c b/src/subscriptions.c index 2d45b6b1..8a2161d3 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -282,6 +282,23 @@ subscription_create_from_transport(th_transport_t *t, const char *name, static void dummy_callback(void *opauqe, streaming_message_t *sm) { + switch(sm->sm_type) { + case SMT_START: + fprintf(stderr, "dummysubscription START, message follows\n"); + htsmsg_print(sm->sm_data); + fprintf(stderr, "\n"); + break; + case SMT_STOP: + fprintf(stderr, "dummysubscription STOP\n"); + break; + + case SMT_TRANSPORT_STATUS: + fprintf(stderr, "dummsubscription: %s\n", transport_feed_status_to_text(sm->sm_code)); + break; + default: + break; + } + streaming_msg_free(sm); }