mpegtsmux: Set the program number from prog-map
authorJesper Larsen <jesper.larsen@ixonos.com>
Sun, 10 Mar 2013 16:02:18 +0000 (17:02 +0100)
committerEdward Hervey <edward@collabora.com>
Wed, 21 Aug 2013 11:02:02 +0000 (13:02 +0200)
commite4a0c4d5092639e01fa8c9db4f8225b27c1d5c2e
treeb560a7056b006796f0aecbf015b986a77b07900f
parentc3e4fe4edc16ec5707b87e5de23ab1b42b5b7d92
mpegtsmux: Set the program number from prog-map

The prog-map property of mpegtsmux only allows you to group pids together in a program.
The program number set in the PAT/PMT tables cannot be set explicitly.

This patch will set the program number according to the prog-map.
If a program id of 0 is given, the first vacant program number starting from 1 will be used.

https://bugzilla.gnome.org/show_bug.cgi?id=697239
gst/mpegtsmux/mpegtsmux.c
gst/mpegtsmux/tsmux/tsmux.c
gst/mpegtsmux/tsmux/tsmux.h