trivial fix in example code, make it actually use our API

Original commit message from CVS:
trivial fix in example code, make it actually use our API
This commit is contained in:
Maciej Katafiasz 2005-05-03 11:05:20 +00:00
parent f6ad1ca390
commit 92c245fe17
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-05-03 Maciej Katafiasz <mathrick@freedesktop.org>
* docs/manual/basics-pads.xml:
trivial fix in example code, make it actually use our API
2005-05-02 Thomas Vander Stichele <thomas at apestaart dot org>
* testsuite/caps/intersection.c: (main):

View file

@ -384,7 +384,7 @@ read_video_props (GstCaps *caps)
gint width, height;
const GstStructure *str;
str = gst_caps_get_structure (caps);
str = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (str, "width", &amp;width) ||
!gst_structure_get_int (str, "height", &amp;height)) {
g_print ("No width/height available\n");