mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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:
parent
f6ad1ca390
commit
92c245fe17
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
2005-05-02 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* testsuite/caps/intersection.c: (main):
|
* testsuite/caps/intersection.c: (main):
|
||||||
|
|
|
@ -384,7 +384,7 @@ read_video_props (GstCaps *caps)
|
||||||
gint width, height;
|
gint width, height;
|
||||||
const GstStructure *str;
|
const GstStructure *str;
|
||||||
|
|
||||||
str = gst_caps_get_structure (caps);
|
str = gst_caps_get_structure (caps, 0);
|
||||||
if (!gst_structure_get_int (str, "width", &width) ||
|
if (!gst_structure_get_int (str, "width", &width) ||
|
||||||
!gst_structure_get_int (str, "height", &height)) {
|
!gst_structure_get_int (str, "height", &height)) {
|
||||||
g_print ("No width/height available\n");
|
g_print ("No width/height available\n");
|
||||||
|
|
Loading…
Reference in a new issue