summaryrefslogtreecommitdiffstats
path: root/gst/mpegtsmux/mpegtsmux.c
diff options
context:
space:
mode:
authorvanista <vanista@gmail.com>2009-01-05 11:28:49 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2009-01-05 11:28:49 +0000
commit751555b5c3839b19274565ef65c6189c494a6924 (patch)
tree05653635b4e46e7eef4c9b89658df007a57c7c54 /gst/mpegtsmux/mpegtsmux.c
parentcaa83490672d4acfd8569d876b4f134c5f72afaa (diff)
downloadgst-plugins-bad-751555b5c3839b19274565ef65c6189c494a6924.tar.gz
gst-plugins-bad-751555b5c3839b19274565ef65c6189c494a6924.tar.bz2
gst-plugins-bad-751555b5c3839b19274565ef65c6189c494a6924.zip
gst/mpegtsmux/: Improve muxing of AC3/h264 streams a bit. Fixes bug #550613.
Original commit message from CVS: Patch by: vanista <vanista at gmail dot com> * gst/mpegtsmux/mpegtsmux.c: (mpegtsmux_create_stream): * gst/mpegtsmux/tsmux/tsmux.c: (tsmux_write_pmt): * gst/mpegtsmux/tsmux/tsmuxstream.c: (tsmux_stream_new), (tsmux_stream_write_pes_header), (tsmux_stream_get_es_descrs): * gst/mpegtsmux/tsmux/tsmuxstream.h: Improve muxing of AC3/h264 streams a bit. Fixes bug #550613.
Diffstat (limited to 'gst/mpegtsmux/mpegtsmux.c')
-rw-r--r--gst/mpegtsmux/mpegtsmux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c
index 53306c3d..f24c4a3e 100644
--- a/gst/mpegtsmux/mpegtsmux.c
+++ b/gst/mpegtsmux/mpegtsmux.c
@@ -399,6 +399,10 @@ mpegtsmux_create_stream (MpegTsMux * mux, MpegTsPadData * ts_data, GstPad * pad)
}
if (ts_data->stream != NULL) {
+ gst_structure_get_int (s, "rate", &ts_data->stream->audio_sampling);
+ gst_structure_get_int (s, "channels", &ts_data->stream->audio_channels);
+ gst_structure_get_int (s, "bitrate", &ts_data->stream->audio_bitrate);
+
tsmux_stream_set_buffer_release_func (ts_data->stream, release_buffer_cb);
tsmux_program_add_stream (mux->program, ts_data->stream);