visual->duration =
gst_util_uint64_scale_int (GST_SECOND, visual->fps_d, visual->fps_n);
- res = gst_pad_push_event (visual->srcpad, gst_event_new_caps (caps));
+ res = gst_pad_set_caps (visual->srcpad, caps);
return res;
/* set caps */
outcaps = gst_caps_new_empty_simple ("audio/x-vorbis");
- gst_pad_push_event (ogg->srcpad, gst_event_new_caps (outcaps));
+ gst_pad_set_caps (ogg->srcpad, outcaps);
gst_caps_unref (outcaps);
/* copy header data */
overlay->width = GST_VIDEO_INFO_WIDTH (&info);
overlay->height = GST_VIDEO_INFO_HEIGHT (&info);
- ret = gst_pad_push_event (overlay->srcpad, gst_event_new_caps (caps));
+ ret = gst_pad_set_caps (overlay->srcpad, caps);
if (ret) {
GST_BASE_TEXT_OVERLAY_LOCK (overlay);
gst_text_render_check_argb (render);
- ret = gst_pad_push_event (render->srcpad, gst_event_new_caps (caps));
+ ret = gst_pad_set_caps (render->srcpad, caps);
return ret;
}
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");
- gst_pad_push_event (mysrcpad, gst_event_new_caps (incaps));
+ gst_pad_set_caps (mysrcpad, incaps);
GST_DEBUG ("Creating buffer of %d bytes", inlength);
inbuffer = gst_buffer_new_and_alloc (inlength);