gst-indent run on core
[platform/upstream/gstreamer.git] / testsuite / debug / printf_extension.c
1 /*
2  * Copyright (C) 2004 David A. Schleef <ds@schleef.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public
15  * License along with this library; if not, write to the Free
16  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18
19 #include <gst/gst.h>
20
21 gint
22 main (gint argc, gchar * argv[])
23 {
24   GstCaps *caps;
25   GstElement *element;
26   int zero = 0;
27
28   gst_init (&argc, &argv);
29
30   caps = gst_caps_from_string ("audio/x-raw-int, rate=44100");
31
32   element = gst_element_factory_make ("identity", NULL);
33
34   GST_ERROR ("This should print caps: %" GST_PTR_FORMAT, caps);
35   GST_ERROR ("This should print an object: %" GST_PTR_FORMAT, element);
36   GST_ERROR ("This should print null: %" GST_PTR_FORMAT, NULL);
37   GST_ERROR ("This should print a pointer: %" GST_PTR_FORMAT, &zero);
38   //GST_ERROR ("This should print a pointer: %" GST_PTR_FORMAT, (void *)1);
39
40   return 0;
41 }