mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
adding stuff to make the code extractor pick up examples
Original commit message from CVS: adding stuff to make the code extractor pick up examples
This commit is contained in:
parent
40e88820f7
commit
2c902a840c
2 changed files with 8 additions and 4 deletions
|
@ -24,6 +24,7 @@
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
/* example-begin xml-mp3.c */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
@ -32,14 +33,14 @@ gboolean playing;
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
GstElement *filesrc, *osssink, *queue, *queue2, *parse, *decode;
|
GstElement *filesrc, *osssink, *queue, *queue2, *decode;
|
||||||
GstElement *bin;
|
GstElement *bin;
|
||||||
GstElement *thread, *thread2;
|
GstElement *thread, *thread2;
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +100,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
/* example-end xml-mp3.c */
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
The most important line is:
|
The most important line is:
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
/* example-begin xml-mp3.c */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
@ -32,14 +33,14 @@ gboolean playing;
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
GstElement *filesrc, *osssink, *queue, *queue2, *parse, *decode;
|
GstElement *filesrc, *osssink, *queue, *queue2, *decode;
|
||||||
GstElement *bin;
|
GstElement *bin;
|
||||||
GstElement *thread, *thread2;
|
GstElement *thread, *thread2;
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +100,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
/* example-end xml-mp3.c */
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
The most important line is:
|
The most important line is:
|
||||||
|
|
Loading…
Reference in a new issue