mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +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>
|
</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
/* example-begin helloworld.c */
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -27,7 +27,7 @@ main (int argc, char *argv[])
|
||||||
gst_init(&argc, &argv);
|
gst_init(&argc, &argv);
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
g_print ("usage: %s <filename>\n", argv[0]);
|
g_print ("usage: %s <mp3 filename>\n", argv[0]);
|
||||||
exit (-1);
|
exit (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
/* example-end helloworld.c */
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -72,7 +72,8 @@ main (int argc, char *argv[])
|
||||||
</para>
|
</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.
|
initialize the framework.
|
||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
/* example-begin helloworld.c */
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -27,7 +27,7 @@ main (int argc, char *argv[])
|
||||||
gst_init(&argc, &argv);
|
gst_init(&argc, &argv);
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
g_print ("usage: %s <filename>\n", argv[0]);
|
g_print ("usage: %s <mp3 filename>\n", argv[0]);
|
||||||
exit (-1);
|
exit (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
/* example-end helloworld.c */
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -72,7 +72,8 @@ main (int argc, char *argv[])
|
||||||
</para>
|
</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.
|
initialize the framework.
|
||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
/* example-begin helloworld.c */
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
static void gst_play_have_type (GstElement *typefind, GstCaps *caps, GstElement *pipeline);
|
static void gst_play_have_type (GstElement *typefind, GstCaps *caps, GstElement *pipeline);
|
||||||
|
@ -78,6 +79,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
/* example-end helloworld.c */
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
We start by constructing a 'filesrc' element and an 'autobin' element that
|
We start by constructing a 'filesrc' element and an 'autobin' element that
|
||||||
|
|
Loading…
Reference in a new issue