From: Lars Op den Kamp Date: Wed, 20 Apr 2011 22:12:08 +0000 (+0200) Subject: add the number of channels and rate to audio stream descriptors and the aspect to... X-Git-Tag: 2.99~69^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=542acadc8faa0c9ae045217a488ca5382ceac30b;p=thirdparty%2Ftvheadend.git add the number of channels and rate to audio stream descriptors and the aspect to video stream descriptors in htsp. --- diff --git a/src/htsp.c b/src/htsp.c index 9d916ec43..f178fdeed 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);