mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
another example
Original commit message from CVS: another example
This commit is contained in:
parent
d616f28fcd
commit
277726f4a1
3 changed files with 12 additions and 8 deletions
|
@ -16,7 +16,7 @@
|
|||
</para>
|
||||
|
||||
<programlisting>
|
||||
|
||||
/* example-begin helloworld.c */
|
||||
#include <gst/gst.h>
|
||||
|
||||
int
|
||||
|
@ -27,7 +27,7 @@ main (int argc, char *argv[])
|
|||
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);
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ main (int argc, char *argv[])
|
|||
|
||||
exit (0);
|
||||
}
|
||||
|
||||
/* example-end helloworld.c */
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
|
@ -72,7 +72,8 @@ main (int argc, char *argv[])
|
|||
</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>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</para>
|
||||
|
||||
<programlisting>
|
||||
|
||||
/* example-begin helloworld.c */
|
||||
#include <gst/gst.h>
|
||||
|
||||
int
|
||||
|
@ -27,7 +27,7 @@ main (int argc, char *argv[])
|
|||
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);
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ main (int argc, char *argv[])
|
|||
|
||||
exit (0);
|
||||
}
|
||||
|
||||
/* example-end helloworld.c */
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
|
@ -72,7 +72,8 @@ main (int argc, char *argv[])
|
|||
</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>
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
</para>
|
||||
|
||||
<programlisting>
|
||||
/* example-begin helloworld.c */
|
||||
#include <gst/gst.h>
|
||||
|
||||
static void gst_play_have_type (GstElement *typefind, GstCaps *caps, GstElement *pipeline);
|
||||
|
@ -78,6 +79,7 @@ main (int argc, char *argv[])
|
|||
|
||||
exit(0);
|
||||
}
|
||||
/* example-end helloworld.c */
|
||||
</programlisting>
|
||||
<para>
|
||||
We start by constructing a 'filesrc' element and an 'autobin' element that
|
||||
|
|
Loading…
Reference in a new issue