Skip to content

Commit

Permalink
add the number of channels and rate to audio stream descriptors and t…
Browse files Browse the repository at this point in the history
…he aspect to video stream descriptors in htsp.
  • Loading branch information
opdenkamp committed Apr 20, 2011
1 parent 90e3570 commit 542acad
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/htsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 542acad

Please sign in to comment.