summaryrefslogtreecommitdiffstats
path: root/gst/mpegdemux
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerabbas@merali.org>2008-11-06 12:17:08 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2008-11-06 12:17:08 +0000
commitd087870e0977ea27f25917ac9cc24733ee65f40e (patch)
treec7baa3c662624b9c1779c24b534de2897df0870a /gst/mpegdemux
parent5e47fd761685f97604623beec3d70ccdc7aa3e4b (diff)
downloadgst-plugins-bad-d087870e0977ea27f25917ac9cc24733ee65f40e.tar.gz
gst-plugins-bad-d087870e0977ea27f25917ac9cc24733ee65f40e.tar.bz2
gst-plugins-bad-d087870e0977ea27f25917ac9cc24733ee65f40e.zip
gst/mpegdemux/gstmpegtsdemux.c: Make private section pads have a caps set so they are not tried to be linked in parse...
Original commit message from CVS: * gst/mpegdemux/gstmpegtsdemux.c: Make private section pads have a caps set so they are not tried to be linked in parse_launch for example.
Diffstat (limited to 'gst/mpegdemux')
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index 3badfa89..7c493061 100644
--- a/gst/mpegdemux/gstmpegtsdemux.c
+++ b/gst/mpegdemux/gstmpegtsdemux.c
@@ -1307,11 +1307,18 @@ gst_fluts_stream_parse_pmt (GstFluTSStream * stream,
if (stream_type == ST_PRIVATE_SECTIONS) {
/* not really an ES, so use section filter not pes filter */
/* initialise section filter */
+ GstCaps *caps;
gst_section_filter_init (&ES_stream->section_filter);
ES_stream->PID_type = PID_TYPE_PRIVATE_SECTION;
ES_stream->pad = gst_pad_new_from_static_template (&private_template,
g_strdup_printf ("private_%04x", entry.PID));
gst_pad_set_active (ES_stream->pad, TRUE);
+ caps = gst_caps_new_simple ("application/x-mpegts-private-section",
+ NULL);
+ gst_pad_use_fixed_caps (ES_stream->pad);
+ gst_pad_set_caps (ES_stream->pad, caps);
+ gst_caps_unref (caps);
+
gst_element_add_pad (GST_ELEMENT_CAST (demux), ES_stream->pad);
} else {
/* Recognise video streams based on stream_type */