From 542acadc8faa0c9ae045217a488ca5382ceac30b Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 21 Apr 2011 00:12:08 +0200 Subject: [PATCH] add the number of channels and rate to audio stream descriptors and the aspect to video stream descriptors in htsp. --- src/htsp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/htsp.c b/src/htsp.c index 9d916ec4..f178fdee 100644 --- a/src/htsp.c +++ b/src/htsp.c @@ -1600,6 +1600,18 @@ htsp_subscription_start(htsp_subscription_t *hs, const streaming_start_t *ss) htsmsg_add_u32(c, "width", ssc->ssc_width); if(ssc->ssc_height) htsmsg_add_u32(c, "height", ssc->ssc_height); + if (ssc->ssc_aspect_num) + htsmsg_add_u32(c, "aspect_num", ssc->ssc_aspect_num); + if (ssc->ssc_aspect_den) + htsmsg_add_u32(c, "aspect_den", ssc->ssc_aspect_den); + } + + if (SCT_ISAUDIO(ssc->ssc_type)) + { + if (ssc->ssc_channels) + htsmsg_add_u32(c, "channels", ssc->ssc_channels); + if (ssc->ssc_sri) + htsmsg_add_u32(c, "rate", ssc->ssc_sri); } htsmsg_add_msg(streams, NULL, c);