GST_LOG_OBJECT (thepad, "getting headers");
- caps = gst_pad_get_negotiated_caps (thepad);
+ caps = gst_pad_get_current_caps (thepad);
if (caps != NULL) {
const GValue *streamheader;
pad = (GstOggPadData *) walk->data;
thepad = pad->collect.pad;
- caps = gst_pad_get_negotiated_caps (thepad);
+ caps = gst_pad_get_current_caps (thepad);
structure = gst_caps_get_structure (caps, 0);
walk = walk->next;
g_free (stname);
/* Get caps */
- caps = gst_pad_get_negotiated_caps (ps->pad);
+ caps = gst_pad_get_current_caps (ps->pad);
if (!caps) {
GST_WARNING ("Couldn't get negotiated caps from %s:%s",
GST_DEBUG_PAD_NAME (ps->pad));
if (peer) {
parent = gst_pad_get_parent_element (peer);
if (parent == sink) {
- caps = gst_pad_get_negotiated_caps (pad);
+ caps = gst_pad_get_current_caps (pad);
done = TRUE;
}
}
/* Caps that resulted in this chain */
- caps = gst_pad_get_negotiated_caps (chain->pad);
+ caps = gst_pad_get_current_caps (chain->pad);
if (!caps) {
caps = get_pad_caps (chain->pad);
if (G_UNLIKELY (!gst_caps_is_fixed (caps))) {
if (!peer)
return raw;
- caps = gst_pad_get_negotiated_caps (peer);
+ caps = gst_pad_get_current_caps (peer);
if (!caps) {
guint i, n;
/* There must be a peer at this point */
peer = gst_pad_get_peer (self->sinkpad);
- caps = gst_pad_get_negotiated_caps (peer);
+ caps = gst_pad_get_current_caps (peer);
if (!caps)
caps = gst_pad_get_caps (peer, NULL);
gst_object_unref (peer);
/* There must be a peer at this point */
peer = gst_pad_get_peer (self->sinkpad);
- caps = gst_pad_get_negotiated_caps (peer);
+ caps = gst_pad_get_current_caps (peer);
if (!caps)
caps = gst_pad_get_caps (peer, NULL);
gst_object_unref (peer);
peer = gst_pad_get_peer (self->subtitle_sinkpad);
if (peer) {
- subcaps = gst_pad_get_negotiated_caps (peer);
+ subcaps = gst_pad_get_current_caps (peer);
if (!subcaps) {
subcaps = gst_pad_get_caps (peer, NULL);
if (!gst_caps_is_fixed (subcaps)) {
GstCaps *video_caps;
gint fps_n, fps_d;
- video_caps = gst_pad_get_negotiated_caps (video_peer);
+ video_caps = gst_pad_get_current_caps (video_peer);
if (!video_caps) {
video_caps = gst_pad_get_caps (video_peer, NULL);
if (!gst_caps_is_fixed (video_caps)) {
GST_DEBUG_OBJECT (pad, "Linking pad to peer %" GST_PTR_FORMAT, peer);
- caps = gst_pad_get_negotiated_caps (peer);
+ caps = gst_pad_get_current_caps (peer);
if (!caps) {
caps = gst_pad_get_caps (peer, NULL);
if (!gst_caps_is_fixed (caps)) {
{"GstVideoRectangle", sizeof (GstVideoRectangle), 16},
{"GstVideoSinkClass", sizeof (GstVideoSinkClass), 760},
{"GstVideoSink", sizeof (GstVideoSink), 640},
- {"GstXOverlayClass", sizeof (GstXOverlayClass), 64},
+ {"GstVideoOverlayIface", sizeof (GstVideoOverlayIface), 64},
{NULL, 0, 0}
};
GstStructure *s;
GstCaps *muxcaps;
- muxcaps = gst_pad_get_negotiated_caps (sinkpad);
+ muxcaps = gst_pad_get_current_caps (sinkpad);
fail_unless (muxcaps != NULL);
s = gst_caps_get_structure (muxcaps, 0);
fail_unless (gst_structure_has_name (s, "application/ogg"));