From 92c245fe1775b8db6e13e573a7f482ee35d706ac Mon Sep 17 00:00:00 2001 From: Maciej Katafiasz Date: Tue, 3 May 2005 11:05:20 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ docs/manual/basics-pads.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1b77a5c064..1b5de39f58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-03 Maciej Katafiasz + + * docs/manual/basics-pads.xml: + trivial fix in example code, make it actually use our API + 2005-05-02 Thomas Vander Stichele * testsuite/caps/intersection.c: (main): diff --git a/docs/manual/basics-pads.xml b/docs/manual/basics-pads.xml index 41efbce2a9..e09507790f 100644 --- a/docs/manual/basics-pads.xml +++ b/docs/manual/basics-pads.xml @@ -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", &width) || !gst_structure_get_int (str, "height", &height)) { g_print ("No width/height available\n");