+2007-01-05 Jan Schmidt <thaytan@mad.scientist.com>
+
+ * ext/ogg/gstogmparse.c: (gst_ogm_parse_stream_header),
+ (gst_ogm_parse_change_state):
+ Activate pads before adding them to the element.
+
2007-01-05 Tim-Philipp Müller <tim at centricular dot net>
* tests/examples/seek/scrubby.c: (main):
if (current_caps && caps && !gst_caps_is_equal (current_caps, caps)) {
GST_WARNING_OBJECT (ogm, "Already an existing pad %s:%s",
GST_DEBUG_PAD_NAME (ogm->srcpad));
+ gst_pad_set_active (ogm->srcpad, FALSE);
gst_element_remove_pad (GST_ELEMENT (ogm), ogm->srcpad);
ogm->srcpad = NULL;
} else {
ogm->srcpad = gst_pad_new_from_template (ogm->srcpadtempl, "src");
gst_pad_use_fixed_caps (ogm->srcpad);
gst_pad_set_caps (ogm->srcpad, caps);
+ gst_pad_set_active (ogm->srcpad, TRUE);
gst_element_add_pad (GST_ELEMENT (ogm), ogm->srcpad);
GST_INFO_OBJECT (ogm, "Added pad %s:%s with caps %" GST_PTR_FORMAT,
GST_DEBUG_PAD_NAME (ogm->srcpad), caps);
switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY:
if (ogm->srcpad) {
+ gst_pad_set_active (ogm->srcpad, FALSE);
gst_element_remove_pad (element, ogm->srcpad);
ogm->srcpad = NULL;
}