+ case GST_EVENT_CAPS:{
+ gst_event_parse_caps (event, &caps);
+ if (this->caps == NULL || !gst_caps_is_equal (this->caps, caps)) {
+ GST_INFO_OBJECT (pad, "caps changed to %" GST_PTR_FORMAT, caps);
+ gst_caps_replace (&this->caps, caps);
+ outbuffer = gst_gdp_buffer_from_caps (this, caps);
+ if (outbuffer == NULL)
+ goto no_buffer_from_caps;
+
+ GST_BUFFER_DURATION (outbuffer) = 0;
+ GST_BUFFER_FLAG_SET (outbuffer, GST_BUFFER_FLAG_IN_CAPS);
+ if (this->caps_buf)
+ gst_buffer_unref (this->caps_buf);
+ this->caps_buf = outbuffer;
+ gst_gdp_pay_reset_streamheader (this);
+ }
+ break;
+ }