gst/mpeg4videoparse/mpeg4videoparse.c: Set fixed caps on the srcpad after we created the pad...

Original commit message from CVS:
* gst/mpeg4videoparse/mpeg4videoparse.c: (gst_mpeg4vparse_init):
Set fixed caps on the srcpad after we created the pad...
This commit is contained in:
Wim Taymans 2008-05-14 20:57:31 +00:00
parent bfd7046693
commit affa292951
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-05-14 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/mpeg4videoparse/mpeg4videoparse.c: (gst_mpeg4vparse_init):
Set fixed caps on the srcpad after we created the pad...
2008-05-14 Tim-Philipp Müller <tim.muller at collabora co uk> 2008-05-14 Tim-Philipp Müller <tim.muller at collabora co uk>
* tests/check/Makefile.am: * tests/check/Makefile.am:

2
common

@ -1 +1 @@
Subproject commit d78efae300d4dff0291717ccf7a2b82c713a81ef Subproject commit 0823ac6b46b7332109bbc5f1ef40e24e648fae51

View file

@ -798,12 +798,12 @@ gst_mpeg4vparse_init (GstMpeg4VParse * parse, GstMpeg4VParseClass * g_class)
GST_DEBUG_FUNCPTR (gst_mpeg4vparse_sink_event)); GST_DEBUG_FUNCPTR (gst_mpeg4vparse_sink_event));
gst_pad_set_setcaps_function (parse->sinkpad, gst_pad_set_setcaps_function (parse->sinkpad,
GST_DEBUG_FUNCPTR (gst_mpeg4vparse_sink_setcaps)); GST_DEBUG_FUNCPTR (gst_mpeg4vparse_sink_setcaps));
gst_pad_use_fixed_caps (parse->srcpad);
gst_element_add_pad (GST_ELEMENT (parse), parse->sinkpad); gst_element_add_pad (GST_ELEMENT (parse), parse->sinkpad);
parse->srcpad = gst_pad_new_from_static_template (&src_template, "src"); parse->srcpad = gst_pad_new_from_static_template (&src_template, "src");
gst_pad_set_query_function (parse->srcpad, gst_pad_set_query_function (parse->srcpad,
GST_DEBUG_FUNCPTR (gst_mpeg4vparse_src_query)); GST_DEBUG_FUNCPTR (gst_mpeg4vparse_src_query));
gst_pad_use_fixed_caps (parse->srcpad);
gst_element_add_pad (GST_ELEMENT (parse), parse->srcpad); gst_element_add_pad (GST_ELEMENT (parse), parse->srcpad);
parse->adapter = gst_adapter_new (); parse->adapter = gst_adapter_new ();