examples: port directfb example to 1.0

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
This commit is contained in:
Kerrick Staley 2013-08-29 11:02:37 -07:00 committed by Tim-Philipp Müller
parent fdcd93ed7c
commit df287fe250

View 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);