summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-05-06 19:04:54 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2011-05-06 19:04:54 +0200
commit02e5feb2bfebdf3195932e59418606f25a22c560 (patch)
treecfc33709075288c5a674ac339af5f7f8d365a58f /gst
parent62b1a5a7be89c6095aedb034eb5f6a1413c9cef3 (diff)
pad: avoid using the old GST_PAD_CAPS
Don't use GST_PAD_CAPS but instead use the new gst_pad_get_current_caps() method. Avoid setting caps on buffers.
Diffstat (limited to 'gst')
-rw-r--r--gst/gstghostpad.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c
index 76a8448f0..28413a122 100644
--- a/gst/gstghostpad.c
+++ b/gst/gstghostpad.c
@@ -626,6 +626,7 @@ gst_ghost_pad_do_unlink (GstPad * pad)
static void
on_int_notify (GstPad * internal, GParamSpec * unused, GstGhostPad * pad)
{
+#if 0
GstCaps *caps;
gboolean changed;
@@ -649,6 +650,7 @@ on_int_notify (GstPad * internal, GParamSpec * unused, GstGhostPad * pad)
if (caps)
gst_caps_unref (caps);
+#endif
}
static void
@@ -657,7 +659,9 @@ on_src_target_notify (GstPad * target, GParamSpec * unused, gpointer user_data)
GstProxyPad *proxypad;
GstGhostPad *gpad;
GstCaps *caps;
+#if 0
gboolean changed;
+#endif
g_object_get (target, "caps", &caps, NULL);
@@ -683,6 +687,7 @@ on_src_target_notify (GstPad * target, GParamSpec * unused, gpointer user_data)
GST_PROXY_UNLOCK (proxypad);
GST_OBJECT_UNLOCK (target);
+#if 0
GST_OBJECT_LOCK (gpad);
GST_DEBUG_OBJECT (gpad, "notified %p %" GST_PTR_FORMAT, caps, caps);
@@ -699,6 +704,7 @@ on_src_target_notify (GstPad * target, GParamSpec * unused, gpointer user_data)
g_object_notify ((GObject *) gpad, "caps");
#endif
}
+#endif
g_object_unref (gpad);