From cbaec5cb8743b50b5d86f2167b5e52e324a94458 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 26 Jul 2003 10:13:30 +0000 Subject: [PATCH] Mplex apparently creates a private stream with padding 0x00 bytes... This normally triggers gst_pad_try_set_caps(), a... Original commit message from CVS: Mplex apparently creates a private stream with padding 0x00 bytes... This normally triggers gst_pad_try_set_caps(), and since our template is NULL, the argument is NULL too, which is invalid... So here's a quickfix --- gst/mpegstream/gstmpegdemux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/mpegstream/gstmpegdemux.c b/gst/mpegstream/gstmpegdemux.c index b5123de5dc..4ddf3a4b39 100644 --- a/gst/mpegstream/gstmpegdemux.c +++ b/gst/mpegstream/gstmpegdemux.c @@ -114,7 +114,11 @@ GST_PAD_TEMPLATE_FACTORY (private2_factory, "private_stream_2", GST_PAD_SRC, GST_PAD_SOMETIMES, - NULL + GST_CAPS_NEW ( + "mpeg_demux_private_2", + "unknown/unknown", + NULL + ) ); GST_PAD_TEMPLATE_FACTORY (pcm_factory,