</para>
<programlisting>
-
+/* example-begin helloworld.c */
#include <gst/gst.h>
int
gst_init(&argc, &argv);
if (argc != 2) {
- g_print ("usage: %s <filename>\n", argv[0]);
+ g_print ("usage: %s <mp3 filename>\n", argv[0]);
exit (-1);
}
exit (0);
}
-
+/* example-end helloworld.c */
</programlisting>
<para>
</para>
<para>
- The first thing you have to do is to include the standard <application>GStreamer</application> headers and
+ The first thing you have to do is to include the standard
+ <application>GStreamer</application> headers and
initialize the framework.
</para>
<programlisting>
</para>
<programlisting>
-
+/* example-begin helloworld.c */
#include <gst/gst.h>
int
gst_init(&argc, &argv);
if (argc != 2) {
- g_print ("usage: %s <filename>\n", argv[0]);
+ g_print ("usage: %s <mp3 filename>\n", argv[0]);
exit (-1);
}
exit (0);
}
-
+/* example-end helloworld.c */
</programlisting>
<para>
</para>
<para>
- The first thing you have to do is to include the standard <application>GStreamer</application> headers and
+ The first thing you have to do is to include the standard
+ <application>GStreamer</application> headers and
initialize the framework.
</para>
<programlisting>
</para>
<programlisting>
+/* example-begin helloworld.c */
#include <gst/gst.h>
static void gst_play_have_type (GstElement *typefind, GstCaps *caps, GstElement *pipeline);
exit(0);
}
+/* example-end helloworld.c */
</programlisting>
<para>
We start by constructing a 'filesrc' element and an 'autobin' element that