examples: port directfb example to 1.0
authorKerrick Staley <kerrick@kerrickstaley.com>
Thu, 29 Aug 2013 18:02:37 +0000 (11:02 -0700)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 29 Aug 2013 19:13:48 +0000 (20:13 +0100)
gst_pad_get_negotiated_caps was removed from 1.0;
gst_pad_get_current_caps should be used instead. See
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random
/porting-to-1.0.txt

https://bugzilla.gnome.org/show_bug.cgi?id=707074

tests/examples/directfb/gstdfb.c

index 0232772b9763f54c3e91a44d4db59c48a68e3323..32ddd154a3f1e8ae8b88558294d4f71b7d2b7da1 100644 (file)
@@ -83,7 +83,7 @@ size_changed (GObject * obj, GParamSpec * pspec, IDirectFBWindow * window)
   GstStructure *s;
   GstCaps *caps;
 
-  if (!(caps = gst_pad_get_negotiated_caps (pad)))
+  if (!(caps = gst_pad_get_current_caps (pad)))
     return;
 
   s = gst_caps_get_structure (caps, 0);