if (peer) {
subcaps = gst_pad_get_current_caps (peer);
if (!subcaps) {
- subcaps = gst_pad_get_caps (peer, NULL);
+ subcaps = gst_pad_query_caps (peer, NULL);
if (!gst_caps_is_fixed (subcaps)) {
gst_caps_unref (subcaps);
subcaps = NULL;
video_caps = gst_pad_get_current_caps (video_peer);
if (!video_caps) {
- video_caps = gst_pad_get_caps (video_peer, NULL);
+ video_caps = gst_pad_query_caps (video_peer, NULL);
if (!gst_caps_is_fixed (video_caps)) {
gst_caps_unref (video_caps);
video_caps = NULL;
if (video_peer) {
video_caps = gst_pad_get_current_caps (video_peer);
if (!video_caps) {
- video_caps = gst_pad_get_caps (video_peer, NULL);
+ video_caps = gst_pad_query_caps (video_peer, NULL);
}
gst_object_unref (video_peer);
}
GST_WARNING_OBJECT (self, "Can't get video sink from renderer");
continue;
}
- allowed_caps = gst_pad_get_caps (sink, NULL);
+ allowed_caps = gst_pad_query_caps (sink, NULL);
gst_object_unref (sink);
if (allowed_caps && video_caps)
caps = gst_pad_get_current_caps (peer);
if (!caps) {
- caps = gst_pad_get_caps (peer, NULL);
+ caps = gst_pad_query_caps (peer, NULL);
if (!gst_caps_is_fixed (caps)) {
gst_caps_unref (caps);
caps = NULL;