another example
authorThomas Vander Stichele <thomas@apestaart.org>
Sun, 15 Sep 2002 13:15:18 +0000 (13:15 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sun, 15 Sep 2002 13:15:18 +0000 (13:15 +0000)
Original commit message from CVS:
another example

docs/manual/basics-helloworld.xml
docs/manual/helloworld.xml
docs/manual/helloworld2.xml

index 393f58c..cfcd285 100644 (file)
@@ -16,7 +16,7 @@
     </para>
 
     <programlisting>
-      
+/* example-begin helloworld.c */      
 #include &lt;gst/gst.h&gt;
 
 int 
@@ -27,7 +27,7 @@ main (int argc, char *argv[])
   gst_init(&amp;argc, &amp;argv);
 
   if (argc != 2) {
-    g_print ("usage: %s &lt;filename&gt;\n", argv[0]);
+    g_print ("usage: %s &lt;mp3 filename&gt;\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>
index 393f58c..cfcd285 100644 (file)
@@ -16,7 +16,7 @@
     </para>
 
     <programlisting>
-      
+/* example-begin helloworld.c */      
 #include &lt;gst/gst.h&gt;
 
 int 
@@ -27,7 +27,7 @@ main (int argc, char *argv[])
   gst_init(&amp;argc, &amp;argv);
 
   if (argc != 2) {
-    g_print ("usage: %s &lt;filename&gt;\n", argv[0]);
+    g_print ("usage: %s &lt;mp3 filename&gt;\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>
index 14b83d0..f1fe2ef 100644 (file)
@@ -18,6 +18,7 @@
     </para>
 
     <programlisting>
+/* example-begin helloworld.c */
 #include &lt;gst/gst.h&gt;
 
 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